Skip to content

Commit

Permalink
fixup for ppm
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Oct 4, 2024
1 parent 656b913 commit c01b4c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ install <- function(packages = NULL,
renv_scope_libpaths(libpaths)

# check for explicitly-provided type -- we handle this specially for PPM
type <- type %||% getOption("pkgType")
renv_scope_binding(the, "install_pkg_type", type)
renv_scope_options(pkgType = type)
if (!is.null(type)) {
renv_scope_binding(the, "install_pkg_type", type)
renv_scope_options(pkgType = type)
}

# override repositories if requested
repos <- repos %||% config$repos.override()
Expand Down

0 comments on commit c01b4c1

Please sign in to comment.