Skip to content

Commit 3897361

Browse files
jonkeaneamoeba
authored andcommitted
MINOR: [R] Bump the timeout for library download (#45607)
### Rationale for this change Increase the timeout, see if that's the issue on CRAN. ### What changes are included in this PR? Timeout, increased ### Are these changes tested? No ### Are there any user-facing changes? Slightly slower downloads are possible.
1 parent 13c1870 commit 3897361

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

r/tools/nixlibs.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ try_download <- function(from_url, to_file, hush = quietly) {
8484
return(FALSE)
8585
}
8686
# We download some fairly large files, so ensure the timeout is set appropriately.
87-
# This assumes a static library size of 100 MB (generous) and a download speed
88-
# of .3 MB/s (slow). This is to anticipate slower user connections or load on
89-
# artifactory servers.
90-
opts <- options(timeout = max(300, getOption("timeout")))
87+
# This assumes a static library size of 100 MB (our current biggest is 78 MB) and
88+
# a download speed of 0.2 MB/s (slow). This is to anticipate slower user connections
89+
# or load on artifactory servers.
90+
opts <- options(timeout = max(600, getOption("timeout")))
9191
on.exit(options(opts))
9292

9393
status <- try(

0 commit comments

Comments
 (0)