Skip to content

Commit

Permalink
let packrat use renv for dependency analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
aronatkins committed Nov 12, 2021
1 parent 179a486 commit e8a8582
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/bundle.R
Original file line number Diff line number Diff line change
Expand Up @@ -1130,6 +1130,10 @@ performPackratSnapshot <- function(bundleDir, verbose = FALSE) {
on.exit(packrat::opts$snapshot.recommended.packages(srp, persist = FALSE),
add = TRUE)

# use renv dependency scanning within packrat.
old <- options("packrat.dependency.discovery.renv" = TRUE)
on.exit(options(old), add = TRUE)

# attempt to eagerly load the BiocInstaller or BiocManaager package if installed, to work around
# an issue where attempts to load the package could fail within a 'suppressMessages()' context
packages <- c("BiocManager", "BiocInstaller")
Expand Down

0 comments on commit e8a8582

Please sign in to comment.