"未使用的参数" R中的toGeoJSON函数出错

时间:2014-08-01 18:38:35

标签: r leaflet

我试图运行这个使用leafletR包的基本示例(取自leafletR包文档):

# 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")

我收到此错误:

Error in toGeoJSON(data = quakes[1:99, ], dest = tempdir(), name = "quakes") : 
  unused arguments (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
有人可以向我解释我的错误在哪里吗?

感谢

0 个答案:

没有答案