Closed
Description
When I run the code on R leaflet tutorial, the Viewer is empty. When I click the zoom button, it is still empty. Here is the code:
library(leaflet)
m <- leaflet() %>%
addTiles() %>% # Add default OpenStreetMap map tiles
addMarkers(lng=174.768, lat=-36.852, popup="The birthplace of R")
m # Print the map
Here is the session_Info()
R version 3.3.3 (2017-03-06)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: macOS Sierra 10.12.3
locale:
[1] zh_CN.UTF-8/zh_CN.UTF-8/zh_CN.UTF-8/C/zh_CN.UTF-8/zh_CN.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
other attached packages:
[1] REmap_0.3.2 tidyr_0.6.1 RJSONIO_1.3-0
[4] ggplot2_2.2.1 maptools_0.9-1 sp_1.2-4
[7] dplyr_0.5.0 stringr_1.2.0 rjson_0.2.15
[10] leafletCN_0.2.2 leaflet_1.1.0.9000 RMySQL_0.10.9
[13] DBI_0.6
loaded via a namespace (and not attached):
[1] Rcpp_0.12.10 plyr_1.8.4 git2r_0.18.0
[4] tools_3.3.3 digest_0.6.12 jsonlite_1.3
[7] memoise_1.0.0 tibble_1.2 gtable_0.2.0
[10] lattice_0.20-34 shiny_1.0.0 crosstalk_1.0.0
[13] curl_2.3 yaml_2.1.14 withr_1.0.2
[16] httr_1.2.1 htmlwidgets_0.8 devtools_1.12.0
[19] grid_3.3.3 R6_2.2.0 XML_3.98-1.5
[22] foreign_0.8-67 magrittr_1.5 scales_0.4.1
[25] htmltools_0.3.5 assertthat_0.1 mime_0.5
[28] xtable_1.8-2 colorspace_1.3-2 httpuv_1.3.3
[31] stringi_1.1.2 lazyeval_0.2.0.9000 munsell_0.4.3
What should I do? Thanks!
Metadata
Assignees
Labels
No labels