r-tmap / tmap

R package for thematic maps
https://r-tmap.github.io/tmap
GNU General Public License v3.0
858 stars 119 forks source link

read_osm example from docs fails #370

Closed RPanczak closed 4 years ago

RPanczak commented 4 years ago

Hi Martin & team,

Tried running example from the docs

data(NLD_muni)
osm_NLD <- read_osm(NLD_muni, ext=1.1)

That fails giving error

Error in FUN(X[[i]], ...) : 
  Sorry, parameter type `NA' is ambiguous or not supported.

My session

R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)

Matrix products: default

locale:
[1] LC_COLLATE=English_Australia.1252  LC_CTYPE=English_Australia.1252   
[3] LC_MONETARY=English_Australia.1252 LC_NUMERIC=C                      
[5] LC_TIME=English_Australia.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] OpenStreetMap_0.3.4 gghighlight_0.1.0   kableExtra_1.1.0    sjmisc_2.8.2       
 [5] tmaptools_2.0-2     tmap_2.3-1          sf_0.8-0            imputeTS_3.0       
 [9] janitor_1.2.0       scales_1.0.0        lubridate_1.7.4     magrittr_1.5       
[13] forcats_0.4.0       stringr_1.4.0       dplyr_0.8.3         purrr_0.3.3        
[17] readr_1.3.1         tidyr_1.0.0         tibble_2.1.3        ggplot2_3.2.1      
[21] tidyverse_1.2.1     pacman_0.5.1       

loaded via a namespace (and not attached):
  [1] readxl_1.3.1       backports_1.1.5    lwgeom_0.1-7       plyr_1.8.4        
  [5] lazyeval_0.2.2     sp_1.3-2           crosstalk_1.0.0    leaflet_2.0.2     
  [9] inline_0.3.15      pryr_0.1.4         digest_0.6.22      htmltools_0.4.0   
 [13] magick_2.2         fansi_0.4.0        checkmate_1.9.4    modelr_0.1.5      
 [17] matrixStats_0.55.0 xts_0.11-2         forecast_8.9       tseries_0.10-47   
 [21] prettyunits_1.0.2  colorspace_1.4-1   rvest_0.3.5        haven_2.2.0       
 [25] xfun_0.10          rgdal_1.4-7        tcltk_3.6.1        callr_3.3.2       
 [29] crayon_1.3.4       RCurl_1.95-4.12    jsonlite_1.6       zeallot_0.1.0     
 [33] zoo_1.8-6          glue_1.3.1         gtable_0.3.0       webshot_0.5.1     
 [37] pkgbuild_1.0.6     rstan_2.19.2       quantmod_0.4-15    rapportools_1.0   
 [41] stinepack_1.4      DBI_1.0.0          Rcpp_1.0.3         viridisLite_0.3.0 
 [45] xtable_1.8-4       units_0.6-5        stats4_3.6.1       StanHeaders_2.19.0
 [49] htmlwidgets_1.5.1  httr_1.4.1         RColorBrewer_1.1-2 ellipsis_0.3.0    
 [53] rJava_0.9-11       pkgconfig_2.0.3    loo_2.1.0          XML_3.98-1.20     
 [57] nnet_7.3-12        utf8_1.1.4         tidyselect_0.2.5   labeling_0.3      
 [61] rlang_0.4.1        later_1.0.0        munsell_0.5.0      cellranger_1.1.0  
 [65] tools_3.6.1        cli_1.1.0          generics_0.0.2     sjlabelled_1.1.1  
 [69] broom_0.5.2        evaluate_0.14      summarytools_0.9.4 fastmap_1.0.1     
 [73] yaml_2.2.0         processx_3.4.1     leafsync_0.1.0     knitr_1.25        
 [77] pander_0.6.3       nlme_3.1-140       mime_0.7           xml2_1.2.2        
 [81] compiler_3.6.1     rstudioapi_0.10    curl_4.2           e1071_1.7-2       
 [85] stringi_1.4.3      ps_1.3.0           rgeos_0.5-2        lattice_0.20-38   
 [89] classInt_0.4-2     urca_1.3-0         vctrs_0.2.0        pillar_1.4.2      
 [93] lifecycle_0.1.0    lmtest_0.9-37      bitops_1.0-6       insight_0.6.0     
 [97] raster_3.0-7       httpuv_1.5.2       R6_2.4.0           promises_1.1.0    
[101] KernSmooth_2.23-15 gridExtra_2.3      codetools_0.2-16   dichromat_2.0-0   
[105] assertthat_0.2.1   rprojroot_1.3-2    withr_2.1.2        fracdiff_1.4-2    
[109] parallel_3.6.1     hms_0.5.2          quadprog_1.5-7     grid_3.6.1        
[113] timeDate_3043.102  class_7.3-15       rmarkdown_1.16     snakecase_0.11.0  
[117] TTR_0.23-5         shiny_1.4.0  
mtennekes commented 4 years ago

You'll need the github version of tmaptools (see https://github.com/mtennekes/tmaptools/issues/17).

RPanczak commented 4 years ago

Thank you Martin.