Skip to content

Commit

Permalink
Merge branch 'support-unix' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
kwb.pkgbuild::use_autopkgdown() committed Sep 27, 2023
2 parents 0d75c4d + 3fa15f2 commit 22b57ee
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions R/install_abimo.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ install_abimo <- function(
invisible(exdir)
}

# download_assets -------------------------------------------------------
# download_assets --------------------------------------------------------------

#' @importFrom utils download.file getFromNamespace
download_assets <- function(
Expand All @@ -55,9 +55,12 @@ download_assets <- function(
destdir = tempdir(),
pattern = NULL,
accept = "application/octet-stream",
extra = "--connect-timeout 60"
timeout = getOption("timeout")
)
{
old_options <- options(timeout = timeout)
on.exit(options(old_options))

asset_info <- get_asset_info(repo, tag)

if (!is.null(pattern)) {
Expand All @@ -76,8 +79,7 @@ download_assets <- function(
Authorization = paste("token", github_pat()),
Accept = accept
),
mode = "wb",
extra = extra
mode = "wb"
)
}

Expand Down

0 comments on commit 22b57ee

Please sign in to comment.