Skip to content

Commit

Permalink
Raise download.file timeout limit from 60s to 180s
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Nov 28, 2023
1 parent 087a85a commit 13289b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/fetchTileDBLib.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ dlurl <- switch(osarg,
url = urlarg)
cat("downloading", dlurl, "\n")
op <- options()
options(timeout=60)
options(timeout=180)
download.file(dlurl, "tiledb.tar.gz", quiet=TRUE)
options(op)
2 changes: 1 addition & 1 deletion tools/fetchTileDBSrc.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if (arg == "default") {
if (!file.exists("tiledb.tar,gz")) {
cat("Downloading", url, "\n")
op <- options()
options(timeout=60)
options(timeout=180)
download.file(url, "tiledb.tar.gz", quiet=TRUE)
options(op)
}
Expand Down
2 changes: 1 addition & 1 deletion tools/winlibs.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ver <- dcf[[1, "version"]]
if (!file.exists("../windows/rwinlib-tiledb/include/tiledb/tiledb.h")) {
if (getRversion() < "4") stop("This package requires Rtools40 or newer")
op <- options()
options(timeout=60) # CRAN request to have patient download settings
options(timeout=180) # CRAN request to have patient download settings
download.file(sprintf("https://github.com/TileDB-Inc/rwinlib-tiledb/archive/v%s.zip", ver), "lib.zip", quiet = TRUE)
options(op)
dir.create("../windows", showWarnings = FALSE)
Expand Down

0 comments on commit 13289b4

Please sign in to comment.