Skip to content

Commit

Permalink
improve lockfile contents
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzwalthert committed Jan 11, 2024
1 parent 6079a7f commit 6786eb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions inst/update-existing-hook-dependencies.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
source("renv/activate.R")

options(
# repos = c(CRAN = "https://packagemanager.rstudio.com/all/latest"),
install.packages.compile.from.source = "never"
repos = c(RSPM = renv::lockfile_read()$R$Repositories$RSPM), # CRAN is not an option, always use PPM
install.packages.check.source = "no", # don't check if source packages are available
install.packages.compile.from.source = "never", # probably redundant with the above 'no': If source package is available, only use source if no code needs to be compiled (needs compilation flag on CRAN).
)
renv::install("jsonlite")
renv_deps <- names(jsonlite::read_json("renv.lock")$Packages)
Expand Down

0 comments on commit 6786eb8

Please sign in to comment.