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

Fail to compile at 02-spatial-data.Rmd #182

Closed
micha-silver opened this issue Mar 24, 2018 · 3 comments
Closed

Fail to compile at 02-spatial-data.Rmd #182

micha-silver opened this issue Mar 24, 2018 · 3 comments

Comments

@micha-silver
Copy link

I'm getting the following error when I try to render the book (both from within Rstudio and at the command line):

> version
              _                           
platform       x86_64-pc-linux-gnu         
arch           x86_64                      
os             linux-gnu                   
system         x86_64, linux-gnu           
status                                     
major          3                           
minor          4.4                         
year           2018                        
month          03                          
day            15                          
svn rev        74408                       
language       R                           
version.string R version 3.4.4 (2018-03-15)
nickname       Someone to Lean On    
bookdown::render_book("index.Rmd", output_format = "bookdown::gitbook", clean = FALSE)
processing file: index.Rmd
  |........                                                         |  12%
label: unnamed-chunk-1 (with options) 
List of 2
 $ include: logi FALSE
 $ cache  : logi FALSE
  |................                                                 |  25%
   inline R code fragments
  |........................                                         |  38%
label: unnamed-chunk-2 (with options) 
List of 1
 $ echo: logi FALSE
  |................................                                 |  50%
   inline R code fragments
  |.........................................                        |  62%

..... more normal output ...... until:

Quitting from lines 184-185 (02-spatial-data.Rmd)
Error in CPL_crs_from_epsg(as.integer(x)) :
  Expecting a single value: [extent=4].
Calls: local ... st_crs.numeric -> make_crs -> CPL_crs_from_epsg -> .Call
In addition: Warning message:
In if (is.na(x)) NA_crs_ else if (inherits(x, "crs")) x else if (is.numeric(x))
CPL_crs_from_epsg(as.integer(x)) else if (is.character(x)) { :
  the condition has length > 1 and only the first element will be used
Execution halted
Error in Rscript_render(f, render_args, render_meta) : 
  Failed to compile 02-spatial-data.Rmd
In addition: Warning message:
In verify_rstudio_version() :
  Please install or upgrade Pandoc to at least version 1.17.2; or if you are using RStudio, you can just install RStudio 1.0+.`

Thanks, Micha

@Nowosad
Copy link
Member

Nowosad commented Mar 24, 2018

Thanks @micha-silver. We are aware of this problem (r-spatial/sf#685). I'll fix this issue in the next few days.

@Nowosad
Copy link
Member

Nowosad commented Mar 24, 2018

@micha-silver It should work now. You just need to install the newest version of spData:

devtools::install_github("nowosad/spData")

@Nowosad Nowosad closed this as completed Mar 24, 2018
@micha-silver
Copy link
Author

micha-silver commented Mar 25, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants