R中toGeoJSON函数中的“未使用参数”错误
我试图运行这个使用传单包的基本示例,该示例取自传单包文档:R中toGeoJSON函数中的“未使用参数”错误,r,leaflet,R,Leaflet,我试图运行这个使用传单包的基本示例,该示例取自传单包文档: # load example data (Fiji Earthquakes) data(quakes) # store data in GeoJSON file (just a subset here) q.dat <- toGeoJSON(data=quakes[1:99,], dest=tempdir(), name="quakes") 这是我的会话信息: > sessionInfo() R version 3.0.
# load example data (Fiji Earthquakes)
data(quakes)
# store data in GeoJSON file (just a subset here)
q.dat <- toGeoJSON(data=quakes[1:99,], dest=tempdir(), name="quakes")
这是我的会话信息:
> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: i386-w64-mingw32/i386 (32-bit)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] plyr_1.8.1 rMaps_0.1.1 rCharts_0.4.2 base64enc_0.1-2 RCurl_1.95-4.1 bitops_1.0-6 whisker_0.3-2
[8] RJSONIO_1.2-0.2 yaml_2.1.13 leafletR_0.2-1 maps_2.3-7 shiny_0.10.0 devtools_1.5
loaded via a namespace (and not attached):
[1] caTools_1.17 digest_0.6.4 evaluate_0.5.1 grid_3.0.2 htmltools_0.2.4 httpuv_1.3.0
[7] httr_0.3 lattice_0.20-23 memoise_0.2.1 parallel_3.0.2 RColorBrewer_1.0-5 Rcpp_0.11.2
[13] stringr_0.6.2 tools_3.0.2 xtable_1.7-3
> args(leafletR::toGeoJSON)
function (data, name, dest, lat.lon, overwrite = TRUE)
NULL
有人能给我解释一下我的错误在哪里吗
谢谢请发布您的sessionInfo,它对我很有用。如果您发布了argsleafletR::toGeoJSONI,也会有帮助,谢谢。您可能无意中创建了另一个名为toGeoJSON的对象,请尝试传单r::toGeoJSONdata=quakes[1:99,],dest=tempdir,name=quakes。如果这样做行得通,那么rmtoGeoJSON应该去掉这个假的。
> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: i386-w64-mingw32/i386 (32-bit)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] plyr_1.8.1 rMaps_0.1.1 rCharts_0.4.2 base64enc_0.1-2 RCurl_1.95-4.1 bitops_1.0-6 whisker_0.3-2
[8] RJSONIO_1.2-0.2 yaml_2.1.13 leafletR_0.2-1 maps_2.3-7 shiny_0.10.0 devtools_1.5
loaded via a namespace (and not attached):
[1] caTools_1.17 digest_0.6.4 evaluate_0.5.1 grid_3.0.2 htmltools_0.2.4 httpuv_1.3.0
[7] httr_0.3 lattice_0.20-23 memoise_0.2.1 parallel_3.0.2 RColorBrewer_1.0-5 Rcpp_0.11.2
[13] stringr_0.6.2 tools_3.0.2 xtable_1.7-3
> args(leafletR::toGeoJSON)
function (data, name, dest, lat.lon, overwrite = TRUE)
NULL