diff --git a/DESCRIPTION b/DESCRIPTION index 22f14303bc10b08f81f80d0e3046e0609c1bfb63..e63c0e6b87c8dce4a7089c5124addc98c51174f9 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -45,7 +45,7 @@ Suggests: knitr, testthat, usethis, rmarkdown VignetteBuilder: knitr SystemRequirements: Tested with at least 4 GB RAM. NeedsCompilation: no -Packaged: 2023-07-05 14:07:57 UTC; helge +Packaged: 2023-07-05 16:26:13 UTC; helge Author: Helge Jentsch [aut, cre], Maria Bobrowski [aut], Johannes Weidinger [aut], diff --git a/R/WorldClim_download_functions.R b/R/WorldClim_download_functions.R index d2272a0e5e1eaac108cab81569b496b2f38ea5d0..6b07ad4df91db565ae697f9705d2c1f36e766d56 100644 --- a/R/WorldClim_download_functions.R +++ b/R/WorldClim_download_functions.R @@ -1266,14 +1266,15 @@ WorldClim.CMIP_6.download <- function(save.location = "./", # if(url.exists(URL.temp)){ # if(RCurl::urlExists(url = URL.temp)){ URLstatus <- curl::curl_fetch_memory(url = URL.temp)$status + # print(URLstatus) if(URLstatus == 200){ # clear up the temporary directory unlink(list.files(tempdir(), recursive = T, full.names=T)) if(res.temp == "30s"){ options(timeout = max(2400, getOption("timeout"))) }else{ - if(getOption("timeout") != 60){ - options(timeout = max(60, getOption("timeout"))) + if(getOption("timeout") != 300){ + options(timeout = max(300, getOption("timeout"))) } } # download file to save location