Skip to content

Commit

Permalink
Fix retries typo
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Mar 23, 2023
1 parent d01169c commit a6deba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ download_with_retries <- function(download_url,
quiet = TRUE) {
download_rc <- try_download(download_url, destination_file,
quiet = quiet, stop_on_error = FALSE)
num_retries <- 1
num_retries <- 0
while (num_retries < retries && inherits(download_rc, "try-error")) {
Sys.sleep(pause_sec)
num_retries <- num_retries + 1
Expand Down

0 comments on commit a6deba5

Please sign in to comment.