From 6786eb8174237712b0dff31cb50c004e29c43886 Mon Sep 17 00:00:00 2001 From: Lorenz Walthert Date: Thu, 11 Jan 2024 21:23:58 +0100 Subject: [PATCH] improve lockfile contents --- inst/update-existing-hook-dependencies.R | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inst/update-existing-hook-dependencies.R b/inst/update-existing-hook-dependencies.R index c509e66f9..9800e75a5 100644 --- a/inst/update-existing-hook-dependencies.R +++ b/inst/update-existing-hook-dependencies.R @@ -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)