I just started to use R a day ago and I'm trying to read a geojson file using the SF library, but I'm not sure what the correct way is.
library(dplyr)
library(sf)
geo <- system.file('/my/path/zones.geojson', package = 'sf')
st_read(geo)
When I run these lines of code, I get the error message:
Cannot open data source
Error in CPL_read_ogr(dsn, layer, as.character(options), quiet, type, :
Open failed.
Please let me know how I change it, thank you all!