Describe the bug
Using the fill_colour parameter in shapes crashes Rstudio in windows.
If I remove the fill_colour
parameter then it produces the map just fine (although without colors). I put the source code in the editor and the specific place that it crashes is on the line
shape <- mapdeck:::rcpp_polygon_geojson(data, l, geometry_column, digits)
Oddly enough, if I run the same example in RGui then it doesn't crash but it does hang for at least 5 minutes before it returns results whereas Rstudio announces the fatal error session crash within 5 seconds.
To Reproduce
If I just use the example from the Colours page of the guide, ie.
pp <- spatialwidget::widget_melbourne mapdeck() %>% add_polygon( data = pp , fill_colour = "SA2_NAME" )
that will produce a crash (or if in Rgui will take 5+ minutes to complete)
Expected behaviour
Not crashing ;)
Screenshots
If applicable, add screenshots to help explain your problem.
Versions
sessionInfo() R version 4.2.1 (2022-06-23 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19044) Matrix products: default locale: [1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8 LC_MONETARY=English_United States.utf8 [4] LC_NUMERIC=C LC_TIME=English_United States.utf8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] sf_1.0-8 mapdeck_0.3.40004 RPostgres_1.4.4 loaded via a namespace (and not attached): [1] tidyselect_1.1.2 purrr_0.3.4 jsonify_1.2.1 vctrs_0.4.1 generics_0.1.3 htmltools_0.5.3 [7] utf8_1.2.2 blob_1.2.3 rlang_1.0.4 e1071_1.7-11 pillar_1.8.0 glue_1.6.2 [13] DBI_1.1.3 bit64_4.0.5 lifecycle_1.0.1 htmlwidgets_1.5.4 fastmap_1.1.0 class_7.3-20 [19] fansi_1.0.3 Rcpp_1.0.9 KernSmooth_2.23-20 classInt_0.4-7 bit_4.0.4 hms_1.1.1 [25] digest_0.6.29 dplyr_1.0.9 grid_4.2.1 cli_3.3.0 tools_4.2.1 magrittr_2.0.3 [31] proxy_0.4-27 tibble_3.1.8 spatialwidget_0.2.4 pkgconfig_2.0.3 ellipsis_0.3.2 rstudioapi_0.13 [37] R6_2.5.1 units_0.8-0 compiler_4.2.1
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4