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

New CRAN issues of v0.4.0 on all platforms #54

Closed
munterfinger opened this issue Aug 19, 2020 · 2 comments
Closed

New CRAN issues of v0.4.0 on all platforms #54

munterfinger opened this issue Aug 19, 2020 · 2 comments
Assignees
Labels

Comments

@munterfinger
Copy link
Owner

@munterfinger munterfinger commented Aug 19, 2020

{hereR} v0.4.0 is encountering new issues on CRAN, which have to be fixed before 2020-08-26 to safely retain the package on CRAN: https://cran.r-project.org/web/checks/check_results_hereR.html

The building of the vignettes fails due to a new release of {mapview} v2.9.0 on CRAN:

* checking package vignettes in ‘inst/doc’ ... OK
* checking re-building of vignette outputs ... [40s/51s] WARNING
Error(s) in re-building vignettes:
  ...
--- re-building ‘authentication.Rmd’ using rmarkdown
--- finished re-building ‘authentication.Rmd’

--- re-building ‘geocoder.Rmd’ using rmarkdown
Could not determine mime type for `/tmp/RtmpVgrBta/file55575cf9ebdc/geocoded_layer.fgb'
Error: processing vignette 'geocoder.Rmd' failed with diagnostics:
pandoc document conversion failed with error 63
--- failed re-building ‘geocoder.Rmd’

--- re-building ‘intermodal.Rmd’ using rmarkdown
Could not determine mime type for `/tmp/RtmpKDZmI2/file607e4277b938/Intermodalroute_layer.fgb'
Error: processing vignette 'intermodal.Rmd' failed with diagnostics:
pandoc document conversion failed with error 63
--- failed re-building ‘intermodal.Rmd’

--- re-building ‘routing.Rmd’ using rmarkdown
Could not determine mime type for `/tmp/RtmpqWMhLS/file6b0624241742/Route[O-D]_layer.fgb'
Error: processing vignette 'routing.Rmd' failed with diagnostics:
pandoc document conversion failed with error 63
--- failed re-building ‘routing.Rmd’

--- re-building ‘traffic.Rmd’ using rmarkdown
Could not determine mime type for `/tmp/RtmpnKfVY1/file717d30881319/Jamfactor_layer.fgb'
Error: processing vignette 'traffic.Rmd' failed with diagnostics:
pandoc document conversion failed with error 63
--- failed re-building ‘traffic.Rmd’

--- re-building ‘transit.Rmd’ using rmarkdown
Could not determine mime type for `/tmp/Rtmp28fq3V/file785a69cecc7d/Transportmode_layer.fgb'
Error: processing vignette 'transit.Rmd' failed with diagnostics:
pandoc document conversion failed with error 63
--- failed re-building ‘transit.Rmd’

--- re-building ‘weather.Rmd’ using rmarkdown
Could not determine mime type for `/tmp/RtmplrmSn6/file551555cf1e8/Observation_layer.fgb'
Error: processing vignette 'weather.Rmd' failed with diagnostics:
pandoc document conversion failed with error 63
--- failed re-building ‘weather.Rmd’

SUMMARY: processing the following files failed:
  ‘geocoder.Rmd’ ‘intermodal.Rmd’ ‘routing.Rmd’ ‘traffic.Rmd’
  ‘transit.Rmd’ ‘weather.Rmd’

Error: Vignette re-building failed.
Execution halted
@munterfinger munterfinger self-assigned this Aug 19, 2020
@munterfinger
Copy link
Owner Author

@munterfinger munterfinger commented Aug 19, 2020

The issue of not compiling HTML documents with mapview v2.9.0 is already fixed in r-spatial/mapview#312. But installing the dev version from GitHub...

> remotes::install_github("r-spatial/mapview")
Downloading GitHub repo r-spatial/mapview@HEAD
✓  checking for file ‘/private/var/folders/fj/hhs6h5dd2nnbb4pcdkzbgpyw0000gn/T/RtmpYuCwEg/remotes18812ad26675/r-spatial-mapview-371eceb/DESCRIPTION’ ...
─  preparing ‘mapview’:
✓  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘mapview_2.9.0.tar.gz’
   
* installing *source* package ‘mapview’ ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (mapview)

... does not yet solve the problem in building the package vignettes:

> devtools::build_vignettes()
Building hereR vignettes
--- re-building ‘authentication.Rmd’ using rmarkdown
--- finished re-building ‘authentication.Rmd’

--- re-building ‘geocoder.Rmd’ using rmarkdown
Could not determine mime type for `/var/folders/fj/hhs6h5dd2nnbb4pcdkzbgpyw0000gn/T//Rtmpgr7efO/file192324d0bfc2/geocoded_layer.fgb'
Error: processing vignette 'geocoder.Rmd' failed with diagnostics:
pandoc document conversion failed with error 63
--- failed re-building ‘geocoder.Rmd’

--- re-building ‘intermodal.Rmd’ using rmarkdown
Could not determine mime type for `/var/folders/fj/hhs6h5dd2nnbb4pcdkzbgpyw0000gn/T//Rtmpgr7efO/file1923498639d6/Intermodalroute_layer.fgb'
Error: processing vignette 'intermodal.Rmd' failed with diagnostics:
pandoc document conversion failed with error 63
--- failed re-building ‘intermodal.Rmd’

--- re-building ‘routing.Rmd’ using rmarkdown
Could not determine mime type for `/var/folders/fj/hhs6h5dd2nnbb4pcdkzbgpyw0000gn/T//Rtmpgr7efO/file19237d8da710/Route[O-D]_layer.fgb'
Error: processing vignette 'routing.Rmd' failed with diagnostics:
pandoc document conversion failed with error 63
--- failed re-building ‘routing.Rmd’

--- re-building ‘traffic.Rmd’ using rmarkdown
Could not determine mime type for `/var/folders/fj/hhs6h5dd2nnbb4pcdkzbgpyw0000gn/T//Rtmpgr7efO/file1923585b1636/Jamfactor_layer.fgb'
Error: processing vignette 'traffic.Rmd' failed with diagnostics:
pandoc document conversion failed with error 63
--- failed re-building ‘traffic.Rmd’

--- re-building ‘transit.Rmd’ using rmarkdown
Could not determine mime type for `/var/folders/fj/hhs6h5dd2nnbb4pcdkzbgpyw0000gn/T//Rtmpgr7efO/file1923b7fc145/Transportmode_layer.fgb'
Error: processing vignette 'transit.Rmd' failed with diagnostics:
pandoc document conversion failed with error 63
--- failed re-building ‘transit.Rmd’

--- re-building ‘weather.Rmd’ using rmarkdown
Could not determine mime type for `/var/folders/fj/hhs6h5dd2nnbb4pcdkzbgpyw0000gn/T//Rtmpgr7efO/file1923739103f1/Observation_layer.fgb'
Error: processing vignette 'weather.Rmd' failed with diagnostics:
pandoc document conversion failed with error 63
--- failed re-building ‘weather.Rmd’

SUMMARY: processing the following files failed:
  ‘geocoder.Rmd’ ‘intermodal.Rmd’ ‘routing.Rmd’ ‘traffic.Rmd’
  ‘transit.Rmd’ ‘weather.Rmd’

Error : Vignette re-building failed.
Error: callr subprocess failed: Vignette re-building failed.
Type .Last.error.trace to see where the error occured
Session info
> devtools::session_info()
─ Session info ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value                       
 version  R version 4.0.2 (2020-06-22)
 os       macOS Catalina 10.15.5      
 system   x86_64, darwin17.0          
 ui       RStudio                     
 language (EN)                        
 collate  en_US.UTF-8                 
 ctype    en_US.UTF-8                 
 tz       Europe/Zurich               
 date     2020-08-19                  

─ Packages ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 package     * version    date       lib source                            
 assertthat    0.2.1      2019-03-21 [1] CRAN (R 4.0.0)                    
 backports     1.1.8      2020-06-17 [1] CRAN (R 4.0.2)                    
 base64enc     0.1-3      2015-07-28 [1] CRAN (R 4.0.0)                    
 callr         3.4.3      2020-03-28 [1] CRAN (R 4.0.0)                    
 class         7.3-17     2020-04-26 [1] CRAN (R 4.0.2)                    
 classInt      0.4-3      2020-04-07 [1] CRAN (R 4.0.0)                    
 cli           2.0.2      2020-02-28 [1] CRAN (R 4.0.0)                    
 codetools     0.2-16     2018-12-24 [1] CRAN (R 4.0.2)                    
 colorspace    1.4-1      2019-03-18 [1] CRAN (R 4.0.0)                    
 crayon        1.3.4      2017-09-16 [1] CRAN (R 4.0.0)                    
 crosstalk     1.1.0.1    2020-03-13 [1] CRAN (R 4.0.0)                    
 DBI           1.1.0      2019-12-15 [1] CRAN (R 4.0.0)                    
 desc          1.2.0      2018-05-01 [1] CRAN (R 4.0.0)                    
 devtools      2.3.1      2020-07-21 [1] CRAN (R 4.0.2)                    
 digest        0.6.25     2020-02-23 [1] CRAN (R 4.0.0)                    
 dplyr         1.0.1      2020-07-31 [1] CRAN (R 4.0.2)                    
 e1071         1.7-3      2019-11-26 [1] CRAN (R 4.0.0)                    
 ellipsis      0.3.1      2020-05-15 [1] CRAN (R 4.0.0)                    
 fansi         0.4.1      2020-01-08 [1] CRAN (R 4.0.0)                    
 fs            1.5.0      2020-07-31 [1] CRAN (R 4.0.2)                    
 generics      0.0.2      2018-11-29 [1] CRAN (R 4.0.0)                    
 glue          1.4.1      2020-05-13 [1] CRAN (R 4.0.0)                    
 hereR       * 0.4.0.9000 2020-08-19 [1] local                             
 htmltools     0.5.0      2020-06-16 [1] CRAN (R 4.0.2)                    
 htmlwidgets   1.5.1      2019-10-08 [1] CRAN (R 4.0.2)                    
 KernSmooth    2.23-17    2020-04-26 [1] CRAN (R 4.0.2)                    
 knitr         1.29       2020-06-23 [1] CRAN (R 4.0.2)                    
 lattice       0.20-41    2020-04-02 [1] CRAN (R 4.0.2)                    
 leafem        0.1.3      2020-07-26 [1] CRAN (R 4.0.2)                    
 leaflet       2.0.3      2019-11-16 [1] CRAN (R 4.0.0)                    
 lifecycle     0.2.0      2020-03-06 [1] CRAN (R 4.0.0)                    
 magrittr      1.5        2014-11-22 [1] CRAN (R 4.0.0)                    
 mapview     * 2.9.0      2020-08-19 [1] Github (r-spatial/mapview@371eceb)
 memoise       1.1.0      2017-04-21 [1] CRAN (R 4.0.0)                    
 munsell       0.5.0      2018-06-12 [1] CRAN (R 4.0.0)                    
 pillar        1.4.6      2020-07-10 [1] CRAN (R 4.0.2)                    
 pkgbuild      1.1.0      2020-07-13 [1] CRAN (R 4.0.2)                    
 pkgconfig     2.0.3      2019-09-22 [1] CRAN (R 4.0.0)                    
 pkgload       1.1.0      2020-05-29 [1] CRAN (R 4.0.2)                    
 png           0.1-7      2013-12-03 [1] CRAN (R 4.0.0)                    
 prettyunits   1.1.1      2020-01-24 [1] CRAN (R 4.0.0)                    
 processx      3.4.3      2020-07-05 [1] CRAN (R 4.0.2)                    
 ps            1.3.4      2020-08-11 [1] CRAN (R 4.0.2)                    
 purrr         0.3.4      2020-04-17 [1] CRAN (R 4.0.0)                    
 R6            2.4.1      2019-11-12 [1] CRAN (R 4.0.0)                    
 raster        3.3-13     2020-07-17 [1] CRAN (R 4.0.2)                    
 Rcpp          1.0.5      2020-07-06 [1] CRAN (R 4.0.2)                    
 remotes       2.2.0      2020-07-21 [1] CRAN (R 4.0.2)                    
 rlang         0.4.7      2020-07-09 [1] CRAN (R 4.0.2)                    
 rprojroot     1.3-2      2018-01-03 [1] CRAN (R 4.0.0)                    
 rstudioapi    0.11       2020-02-07 [1] CRAN (R 4.0.0)                    
 satellite     1.0.2      2019-12-09 [1] CRAN (R 4.0.0)                    
 scales        1.1.1      2020-05-11 [1] CRAN (R 4.0.0)                    
 sessioninfo   1.1.1      2018-11-05 [1] CRAN (R 4.0.0)                    
 sf            0.9-5      2020-07-14 [1] CRAN (R 4.0.2)                    
 sp            1.4-2      2020-05-20 [1] CRAN (R 4.0.0)                    
 testthat      2.3.2      2020-03-02 [1] CRAN (R 4.0.2)                    
 tibble        3.0.3      2020-07-10 [1] CRAN (R 4.0.2)                    
 tidyselect    1.1.0      2020-05-11 [1] CRAN (R 4.0.0)                    
 units         0.6-7      2020-06-13 [1] CRAN (R 4.0.2)                    
 usethis       1.6.1      2020-04-29 [1] CRAN (R 4.0.0)                    
 vctrs         0.3.2      2020-07-15 [1] CRAN (R 4.0.2)                    
 webshot       0.5.2      2019-11-22 [1] CRAN (R 4.0.0)                    
 withr         2.2.0      2020-04-20 [1] CRAN (R 4.0.0)                    
 xfun          0.16       2020-07-24 [1] CRAN (R 4.0.2)                    

[1] /Library/Frameworks/R.framework/Versions/4.0/Resources/library
@munterfinger
Copy link
Owner Author

@munterfinger munterfinger commented Aug 19, 2020

Forcing {mapview} to use use 'classical' leaflet/htmlwidgets rendering (which embeds data directly in the html) and not the file format 'flatgeobuf' solves the issue:

---
output: rmarkdown::html_vignette
---

```{r, include = FALSE}
library(mapview)
mapviewOptions(fgb = FALSE)
```
> devtools::build_vignettes()
Building hereR vignettes
--- re-building ‘authentication.Rmd’ using rmarkdown
--- finished re-building ‘authentication.Rmd’

--- re-building ‘geocoder.Rmd’ using rmarkdown
--- finished re-building ‘geocoder.Rmd’

--- re-building ‘intermodal.Rmd’ using rmarkdown
--- finished re-building ‘intermodal.Rmd’

--- re-building ‘routing.Rmd’ using rmarkdown
--- finished re-building ‘routing.Rmd’

--- re-building ‘traffic.Rmd’ using rmarkdown
--- finished re-building ‘traffic.Rmd’

--- re-building ‘transit.Rmd’ using rmarkdown
--- finished re-building ‘transit.Rmd’

--- re-building ‘weather.Rmd’ using rmarkdown
--- finished re-building ‘weather.Rmd’

Moving authentication.html, geocoder.html, intermodal.html, routing.html, traffic.html, transit.html, weather.html, authentication.R, geocoder.R, intermodal.R, routing.R, traffic.R, transit.R, weather.R to doc/
Copying authentication.Rmd, geocoder.Rmd, intermodal.Rmd, routing.Rmd, traffic.Rmd, transit.Rmd, weather.Rmd to doc/
Building vignette index

The solution is to temporarily deactivate all maps in the vignettes of {hereR} and submit as v0.4.1 to CRAN to solve the issues. With the next release of {mapview} on CRAN the maps will be reactivated.

sf::sf_extSoftVersion()
#>           GEOS           GDAL         proj.4 GDAL_with_GEOS     USE_PROJ_H 
#>        "3.8.1"        "3.1.1"        "6.3.1"         "true"         "true"
munterfinger added a commit that referenced this issue Aug 19, 2020
…void errors in the building of the package vignettes (see #54).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.