I tried to retrieve EPSG data, but it shows this error
> library(rgdal)
> EPSG<-make_EPSG()
Error in make_EPSG() : PROJ 6 database empty
i tried the to change with the if arguments that are in the package but it seems that didn´t work:
> EPSG <- try(make_EPSG())
Error in make_EPSG() : PROJ 6 database empty
> if (!inherits(EPSG, "try-error")) attr(EPSG, "metadata")
> EPSG
[1] "Error in make_EPSG() : PROJ 6 database empty\n"
attr(,"class")
[1] "try-error"
attr(,"condition")
<simpleError in make_EPSG(): PROJ 6 database empty>
Any idea how to make it work?
I solved the same issue after some time looking for solutions.
An last... when calling to CSR do not use CRS('init': 'epsg:4326') use CRS(SRS_string = 'EPSG:4326') instead.