Hello, I'm trying to use the OSMAR library in R to plot routes and I'm not getting it.
library(osmar)
library(leaflet)
library(igraph)
src <- osmsource_api()
get_osm(node(18961430), source = src)
The following error is appearing:
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
Would anyone have a clue about what's going on? Because my code is small and the error was right at the beginning.
Thanks in advance,