Closed kamaulindhardt closed 1 year ago
That is a download failure because of a timeout. You can set a longer time limit like this
options(timeout = max(900, getOption("timeout")))
(that is done automatically in the development version of geosphere)
Download fails when using
file_path <- paste0(dirname(here::here()), "/silvoarable_review/DATASET.FROM.SCRIPT/")
geodata::worldclim_global(var = 'bio', res = 2.5, path = file_path)
Error message:
However, the old function from the raster package seems to work fine (?):
raster::getData(name = 'worldclim', var = 'bio', res = 2.5, path = file_path)