我正在尝试在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