File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -329,20 +329,18 @@ chelsa_process <- function(
329329 attempt <- attempt + 1
330330 try_n <- try(
331331 expr = {
332-
333- # Suppress GDAL warnings
334- Sys.setenv(" CPL_LOG" = " ERROR" )
335-
336- # suppress known warning
337- # Using ecokit::quietly did not help to avoid these warnings
332+ # known warning
338333 # https://github.com/rspatial/terra/issues/1212
339334 # https://github.com/rspatial/terra/issues/1832
340335 # https://stackoverflow.com/questions/78098166
341336
342- IASDT.R :: chelsa_project(
343- metadata = dplyr :: slice(chelsa_to_process , x ),
344- env_file = env_file , compression_level = compression_level )
345-
337+ ecokit :: quietly(
338+ IASDT.R :: chelsa_project(
339+ metadata = dplyr :: slice(chelsa_to_process , x ),
340+ env_file = env_file , compression_level = compression_level ),
341+ " is not a Latitude/Y dimension." ,
342+ " is not a Longitude/X dimension." )
343+
346344 " Okay"
347345 },
348346 silent = TRUE )
You can’t perform that action at this time.
0 commit comments