我正在跟随一个教程学习如何使用osmar包在R中下载OSM数据,所以代码如下:
library(osmar)
src <- osmsource_api()
bb <- center_bbox(174.76778, -36.85056, 700, 700)
ua <- get_osm(bb, source = src)
当我运行这最后一行时,会出现以下错误:
Space required after the Public Identifier
SystemLiteral " or ' expected
SYSTEM or PUBLIC, the URI is missing
Opening and ending tag mismatch: hr line 7 and body
Opening and ending tag mismatch: body line 4 and html
Premature end of data in tag html line 2
Error: 1: Space required after the Public Identifier
2: SystemLiteral " or ' expected
3: SYSTEM or PUBLIC, the URI is missing
4: Opening and ending tag mismatch: hr line 7 and body
5: Opening and ending tag mismatch: body line 4 and html
6: Premature end of data in tag html line 2
我不确定这是什么意思。当我谷歌这个错误时,我只能看到与Bioconductor和biomaRt相关的东西,这与我正在工作的内容无关。但是,我相信这与R连接OSM网站有关(?)。因此,我想知道是否有人知道如何解决它。谢谢!