Skip to content

Commit

Permalink
Merge pull request #211 from ChrisRackauckas/patch-1
Browse files Browse the repository at this point in the history
Fix timeouts in install_julia
  • Loading branch information
ChrisRackauckas authored Nov 7, 2024
2 parents 8ef2035 + 84000b8 commit c84aed9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/installJulia.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ install_julia <- function(version = "latest",

file <- tempfile()
tryCatch({
old_timeout = getOption("timeout")
options(timeout = 300)
utils::download.file(url, file)
options(timeout = old_timeout)
}, error = function(err) {
stop(paste("There was an error downloading Julia. This could be due ",
"to network issues, and might be resolved by re-running ",
Expand Down

0 comments on commit c84aed9

Please sign in to comment.