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

mapview not working with Raster* objects #472

Open
oscarperpinan opened this issue Mar 3, 2024 · 2 comments
Open

mapview not working with Raster* objects #472

oscarperpinan opened this issue Mar 3, 2024 · 2 comments

Comments

@oscarperpinan
Copy link

Hello,

This example of the mapview webpage does not work:

library(raster)
library(mapview)

kili_data <- system.file("extdata", "kiliNDVI.tif", package = "mapview")
kiliNDVI <- raster::stack(kili_data)

## view the first 3 layers
mapview(kiliNDVI[[1:3]])

I get the error: Error: unused argument ("image/png").

Thanks.

@tim-salabim
Copy link
Member

Works for me. What's your sessionInfo()?

@oscarperpinan
Copy link
Author

R version 4.3.2 (2023-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux trixie/sid

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.12.0 
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.12.0

locale:
 [1] LC_CTYPE=es_ES.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=es_ES.UTF-8        LC_COLLATE=es_ES.UTF-8    
 [5] LC_MONETARY=es_ES.UTF-8    LC_MESSAGES=es_ES.UTF-8   
 [7] LC_PAPER=es_ES.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=es_ES.UTF-8 LC_IDENTIFICATION=C       

time zone: Europe/Madrid
tzcode source: system (glibc)

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

other attached packages:
 [1] rgl_0.111.6         leafsync_0.1.0      leafpop_0.1.0      
 [4] mapview_2.11.2      gstat_2.1-1         ggrepel_0.9.5      
 [7] osmdata_0.2.5       classInt_0.4-3      sp_1.4-5           
[10] sf_1.0-15           RColorBrewer_1.1-3  latticeExtra_0.6-29
[13] ggplot2_3.3.5       lattice_0.22-5     

loaded via a namespace (and not attached):
 [1] gtable_0.3.0            xfun_0.28               servr_0.27             
 [4] raster_3.6-26           httr2_1.0.0             htmlwidgets_1.6.1      
 [7] leaflet.providers_2.0.0 vctrs_0.4.1             tools_4.3.2            
[10] crosstalk_1.2.0         generics_0.1.1          stats4_4.3.2           
[13] curl_4.3.2              tibble_3.1.6            proxy_0.4-26           
[16] spacetime_1.3-1         fansi_0.5.0             xts_0.13.2             
[19] pkgconfig_2.0.3         KernSmooth_2.23-22      satellite_1.0.4        
[22] uuid_1.2-0              leaflet_2.2.1           lifecycle_1.0.1        
[25] compiler_4.3.2          farver_2.1.0            FNN_1.1.4              
[28] munsell_0.5.0           terra_1.7-29            codetools_0.2-19       
[31] httpuv_1.6.14           htmltools_0.5.7         class_7.3-22           
[34] later_1.3.2             pillar_1.6.4            crayon_1.4.2           
[37] jquerylib_0.1.4         ellipsis_0.3.2          brew_1.0-10            
[40] tidyselect_1.1.2        digest_0.6.28           dplyr_1.0.9            
[43] purrr_0.3.4             fastmap_1.1.1           grid_4.3.2             
[46] colorspace_2.0-2        cli_3.3.0               magrittr_2.0.1         
[49] base64enc_0.1-3         utf8_1.2.2              leafem_0.2.3           
[52] e1071_1.7-9             withr_2.4.2             promises_1.2.1         
[55] scales_1.1.1            rappdirs_0.3.3          lubridate_1.8.0        
[58] jpeg_0.1-9              zoo_1.8-9               png_0.1-7              
[61] knitr_1.36              rgdal_1.6-4             rlang_1.1.3            
[64] Rcpp_1.0.10             glue_1.6.2              DBI_1.1.1              
[67] xml2_1.3.6              svglite_2.1.3           jsonlite_1.7.2         
[70] rstudioapi_0.15.0       R6_2.5.1                systemfonts_1.0.5      
[73] intervals_0.15.4        units_0.7-2         

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