I was following a tutorial on how to download OSM data in R with osmar package, so the code is:
library(osmar)
src <- osmsource_api()
bb <- center_bbox(174.76778, -36.85056, 700, 700)
ua <- get_osm(bb, source = src)
When I run this last line, this error appears:
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
I am not sure what this means. When I google this error, I can only see stuff related to Bioconductor, and biomaRt, which has nothing to do with what I am working. However, I believe that this has something to do with the connection with R to OSM website (?). So I'm wondering if anyone knows some tips on how to fix it. Thanks!