I want to make an animation map in R. I have tried several command lines but I get some errors, as follows:
> library(raster) > s <- shapefile("//Users//Merry//Desktop//ro_judete_poligon//ro_judete_poligon") Error in .local(x, ...) : file.exists(extension(x, ".shp")) is not TRUE
or this command
library(rgdal) > ro_judete_poligon<-readOGR(dsn="C://Users//Merry//Desktop",layer="ro_judete_poligon.shp") Error in ogrInfo(dsn = dsn, layer = layer, encoding = encoding, use_iconv = use_iconv, : Cannot open data source
How can I get the shapefile in R? I am confused.