Skip to content

Commit d7b287f

Browse files
committed
set proj to right directory
1 parent 3150344 commit d7b287f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/init.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ if_exists_restore = function(vars, where) {
9090

9191
load_gdal <- function() {
9292
if (!identical(Sys.getenv("R_SF_USE_PROJ_DATA"), "true")) {
93-
if (file.exists(prj <- system.file("proj/nad.lst", package = "sf")[1])) {
93+
if (file.exists(prj <- system.file("proj", package = "sf")[1])) {
9494
# nocov start
9595
if (! CPL_set_data_dir(prj)) { # if TRUE, uses C API to set path, leaving PROJ_LIB / PROJ_DATA alone
9696
if_exists_replace("PROJ_LIB", prj, .sf_cache)
9797
if_exists_replace("PROJ_DATA", prj, .sf_cache)
9898
}
99-
CPL_use_proj4_init_rules(1L)
99+
# CPL_use_proj4_init_rules(1L)
100100
# nocov end
101101
}
102102
if (file.exists(gdl <- system.file("gdal", package = "sf")[1]))

0 commit comments

Comments
 (0)