Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ClimDatDownloadR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jentsch, Helge
ClimDatDownloadR
Commits
65b38f15
Commit
65b38f15
authored
Jul 5, 2023
by
Jentsch, Helge
Browse files
Options
Downloads
Patches
Plain Diff
0.1.7-2: adjusted 5m timeout for WC CMIP6 download
parent
a1a82196
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
DESCRIPTION
+1
-1
1 addition, 1 deletion
DESCRIPTION
R/WorldClim_download_functions.R
+3
-2
3 additions, 2 deletions
R/WorldClim_download_functions.R
with
4 additions
and
3 deletions
DESCRIPTION
+
1
−
1
View file @
65b38f15
...
...
@@ -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 1
4:07:57
UTC; helge
Packaged: 2023-07-05 1
6:26:13
UTC; helge
Author: Helge Jentsch [aut, cre],
Maria Bobrowski [aut],
Johannes Weidinger [aut],
...
...
This diff is collapsed.
Click to expand it.
R/WorldClim_download_functions.R
+
3
−
2
View file @
65b38f15
...
...
@@ -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"
)
!=
6
0
){
options
(
timeout
=
max
(
6
0
,
getOption
(
"timeout"
)))
if
(
getOption
(
"timeout"
)
!=
30
0
){
options
(
timeout
=
max
(
30
0
,
getOption
(
"timeout"
)))
}
}
# download file to save location
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment