javascript - R leaflet package produces blank (grey) map [Ubuntu 14.04] -
i tried out examplecode leaflet
package doc:
devtools::install_github("rstudio/leaflet");library(leaflet) m <- leaflet() %>% addtiles() %>% # add default openstreetmap map tiles addmarkers(lng=174.768, lat=-36.852, popup="the birthplace of r") m # print map
but produced grey, blank map in rstudio viewer, in firefox 38.0. maybe has ubuntu?
here sessioninfo:
> sessioninfo() r version 3.2.1 (2015-06-18) platform: x86_64-pc-linux-gnu (64-bit) running under: ubuntu 14.04.2 lts locale: [1] lc_ctype=de_de.utf-8 lc_numeric=c c_time=de_de.utf-8 c_collate=de_de.utf-8 lc_monetary=de_de.utf-8 [6] lc_messages=de_de.utf-8 lc_paper=de_de.utf-8 lc_name=c lc_address=c lc_telephone=c [11] lc_measurement=de_de.utf-8 lc_identification=c attached base packages: [1] stats graphics grdevices utils datasets methods base other attached packages: [1] leaflet_1.0.0.9999 rgdal_0.9-2 sp_1.0-17 loaded via namespace (and not attached): [1] rcpp_0.11.5 magrittr_1.5 devtools_1.7.0 mass_7.3-41 munsell_0.4.2 colorspace_1.2-6 lattice_0.20-31 [8] stringr_0.6.2 httr_0.6.1 plyr_1.8.1 tools_3.2.1 grid_3.2.1 gtable_0.1.2 tmltools_0.2.6 [15] yaml_2.1.13 digest_0.6.8 jsonio_1.3-0 rcolorbrewer_1.1-2 reshape2_1.4.1 gplot2_1.0.1 htmlwidgets_0.3.2 [22] bitops_1.0-6 rcurl_1.95-4.5 scales_0.2.5 proto_0.3-10
i same thing. same happens me when work. think corporate dept. blocking network traffic. try again @ home.
hope helps.
Comments
Post a Comment