我正在关注如何使用 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 网站(?)的连接有关。所以我想知道是否有人知道如何解决它的一些提示。谢谢!