Skip to content

Commit

Permalink
Allow to pass "extra" argument to download.file
Browse files Browse the repository at this point in the history
  • Loading branch information
hsonne committed Sep 27, 2023
1 parent 0454494 commit 426b6fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/install_abimo.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ download_assets <- function(
tag,
destdir = tempdir(),
pattern = NULL,
accept = "application/octet-stream"
accept = "application/octet-stream",
extra = "--connect-timeout 60"
)
{
asset_info <- get_asset_info(repo, tag)
Expand All @@ -62,7 +63,8 @@ download_assets <- function(
Authorization = paste("token", github_pat()),
Accept = accept
),
mode = "wb"
mode = "wb",
extra = extra
)
}

Expand Down

0 comments on commit 426b6fd

Please sign in to comment.