From ec827b4ab3fb3ba3e45463df5f30dc6355f0c83f Mon Sep 17 00:00:00 2001 From: Aron Atkins Date: Fri, 15 Dec 2023 15:24:14 -0500 Subject: [PATCH] rename renv to avoid confusion over name (#1030) --- R/bundlePackageRenv.R | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/R/bundlePackageRenv.R b/R/bundlePackageRenv.R index caf76cd6..f504aabf 100644 --- a/R/bundlePackageRenv.R +++ b/R/bundlePackageRenv.R @@ -28,14 +28,14 @@ snapshotRenvDependencies <- function(bundleDir, } parseRenvDependencies <- function(bundleDir, snapshot = FALSE) { - renv <- jsonlite::read_json(renvLockFile(bundleDir)) + renvLock <- jsonlite::read_json(renvLockFile(bundleDir)) repos <- setNames( - vapply(renv$R$Repositories, "[[", "URL", FUN.VALUE = character(1)), - vapply(renv$R$Repositories, "[[", "Name", FUN.VALUE = character(1)) + vapply(renvLock$R$Repositories, "[[", "URL", FUN.VALUE = character(1)), + vapply(renvLock$R$Repositories, "[[", "Name", FUN.VALUE = character(1)) ) deps <- standardizeRenvPackages( - renv$Packages, + renvLock$Packages, repos, biocPackages = biocPackages(bundleDir) )