读自R的Github

时间:2016-06-08 15:36:21

标签: r github

我正在尝试在R:

中运行此代码
url = "https://github.com/Robinlovelace/sdvwR/raw/master/data/gps-trace.gpx"
download.file(url, destfile = "shef2leeds.gpx", method = "wget")

library(rgdal)
shef2leeds <- readOGR("shef2leeds.gpx", layer = "tracks")

但是我收到了这个错误:

Error in ogrInfo(dsn = dsn, layer = layer, encoding = encoding, use_iconv = use_iconv,  : 
  Cannot open data source

0 个答案:

没有答案