Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error reading the DESCRIPTION file #451

Closed
Robinlovelace opened this issue Nov 28, 2017 · 10 comments
Closed

Error reading the DESCRIPTION file #451

Robinlovelace opened this issue Nov 28, 2017 · 10 comments
Labels
reprex needs a minimal reproducible example

Comments

@Robinlovelace
Copy link

I'm bamboozled at this error message:


> pkgdown::build_site()
Initialising site ------------------------------------------------------------------------------------------------
Copying '/home/robin/R/x86_64-pc-linux-gnu-library/3.4/pkgdown/assets/jquery.sticky-kit.min.js'
Copying '/home/robin/R/x86_64-pc-linux-gnu-library/3.4/pkgdown/assets/link.svg'
Copying '/home/robin/R/x86_64-pc-linux-gnu-library/3.4/pkgdown/assets/pkgdown.css'
Copying '/home/robin/R/x86_64-pc-linux-gnu-library/3.4/pkgdown/assets/pkgdown.js'
Building home ----------------------------------------------------------------------------------------------------
Writing '/home/robin/repos/stplanr/docs/authors.html'
Updating README.md
Building article 'index.html'
Error in read.dcf("DESCRIPTION") : cannot open the connection

Any ideas? As the below reprex shows there's seemingly nowt wrong with DESCRPTION from the perspective of read.dcf()...

@Robinlovelace
Copy link
Author

read.dcf("/home/robin/repos/stplanr/DESCRIPTION")
#>      Package   Type      Title                            Version
#> [1,] "stplanr" "Package" "Sustainable Transport Planning" "0.2.1"
#>      Authors@R                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
#> [1,] "c(\nperson(\"Robin\", \"Lovelace\", email = \"rob00x@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0001-5679-6536\")),\nperson(\"Richard\", \"Ellison\", role = c(\"aut\")),\nperson(\"Barry\", \"Rowlingson\", role = c(\"ctb\"), comment = \"Author of overline\"),\nperson(\"Nick\", \"Bearman\", role = c(\"ctb\"), comment = \"Co-author of gclip\"),\nperson(\"Malcolm\", \"Morgan\", role = c(\"ctb\"), comment = \"Co-author of angle_diff\"),\nperson(\"Nikolai\", \"Berkoff\", role = c(\"ctb\"), comment = \"Co-author of line2route\"),\nperson(\"Scott \", \"Chamberlin\", role = c(\"rev\"), comment = \"Scott reviewed the package for rOpenSci, see https://github.com/ropensci/onboarding/issues/10\")\n)"
#>      Maintainer                         
#> [1,] "Robin Lovelace <rob00x@gmail.com>"
#>      Description                                                                                                                                           
#> [1,] "Functionality and data access tools for transport planning,\nincluding origin-destination analysis, route allocation and modelling travel\npatterns."
#>      License              BugReports                                  
#> [1,] "MIT + file LICENSE" "https://github.com/ropensci/stplanr/issues"
#>      LazyData Depends          
#> [1,] "yes"    "sp,\nR (>= 3.0)"
#>      Imports                                                                                                                                                                                                 
#> [1,] "curl,\nreadr,\ndplyr,\nhttr,\njsonlite,\nstringi,\nstringr,\nlubridate,\nmaptools,\nraster,\nrgdal,\nrgeos,\nopenxlsx,\nmethods,\nR.utils,\ngeosphere,\nRcpp (>= 0.12.1),\nigraph,\nnabor,\nrlang,\nsf"
#>      LinkingTo              Suggests                              
#> [1,] "RcppArmadillo,\nRcpp" "testthat,\nknitr,\nrmarkdown,\ndodgr"
#>      Enhances VignetteBuilder URL                                  
#> [1,] "tmap"   "knitr"         "https://github.com/ropensci/stplanr"
#>      SystemRequirements RoxygenNote
#> [1,] "GNU make"         "6.0.1"

@hadley
Copy link
Member

hadley commented Feb 20, 2018

Did you manage to figure this out in the meantime?

If not, can you please point me to the source repo?

@hadley hadley added the reprex needs a minimal reproducible example label Feb 20, 2018
@Robinlovelace
Copy link
Author

Just tested and am still getting the error, using the same version of pkgdown it looks like this:

> pkgdown::build_site()
Initialising site ---------------------------------------------------------------------------------------------------------------------------------------------------------------
Copying '/home/robin/R/x86_64-pc-linux-gnu-library/3.4/pkgdown/assets/jquery.sticky-kit.min.js'
Copying '/home/robin/R/x86_64-pc-linux-gnu-library/3.4/pkgdown/assets/link.svg'
Copying '/home/robin/R/x86_64-pc-linux-gnu-library/3.4/pkgdown/assets/pkgdown.css'
Copying '/home/robin/R/x86_64-pc-linux-gnu-library/3.4/pkgdown/assets/pkgdown.js'
Building home -------------------------------------------------------------------------------------------------------------------------------------------------------------------
Writing '/home/robin/repos/stplanr/docs/LICENSE.html'
Writing '/home/robin/repos/stplanr/docs/authors.html'
Updating README.md
Building article 'index.html'
Error in read.dcf("DESCRIPTION") : cannot open the connection

@Robinlovelace
Copy link
Author

Pointer to the source repo: https://github.com/ropensci/stplanr

@hadley
Copy link
Member

hadley commented Feb 21, 2018

I get a couple of different failures, once of which is a pkgdown problem. But when I try and knit that index.Rmd I get:

label: rnet (with options) 
List of 1
 $ warning: logi FALSE

Assertion failed: (!"should never be reached"), function itemsTree, file ../../../../src/geos-3.6.1/src/index/strtree/AbstractSTRtree.cpp, line 373.

@hadley
Copy link
Member

hadley commented Feb 21, 2018

I also get an uninformative error message, but it looks like it's a buglet in callr: r-lib/callr#41

hadley added a commit that referenced this issue Feb 21, 2018
@hadley hadley closed this as completed Mar 1, 2018
@Robinlovelace
Copy link
Author

Thanks for the fix. I'm getting a different error now though with the latest version, any ideas?

Error in section_init(pkg, depth = depth) : object 'depth' not found

@dblodgett-usgs
Copy link

dblodgett-usgs commented Sep 25, 2018

@hadley -- did you identify what was causing the error :

Assertion failed: (!"should never be reached"), function itemsTree, file ../../../../src/geos-3.6.1/src/index/strtree/AbstractSTRtree.cpp, line 373.

I am getting the exact error when running tests in rstudio but not if I run test_file("...") and this is the only reference to it on google. I can not reproduce this outside the context of a test run...

Thanks for any guidance you can provide!

@dblodgett-usgs
Copy link

dblodgett-usgs commented Sep 25, 2018

Stab in the dark uninstall and reinstall of rgeos using:

install.packages("rgeos", repos="http://R-Forge.R-project.org", type="source")

Seams to have fixed it. Not sure I want to know what was actually wrong!

@Robinlovelace
Copy link
Author

Who knows. Pkgdown seems to be working again now though which is great. Thanks all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reprex needs a minimal reproducible example
Projects
None yet
Development

No branches or pull requests

3 participants