Skip to content

Commit

Permalink
rename renv to avoid confusion over name (#1030)
Browse files Browse the repository at this point in the history
  • Loading branch information
aronatkins authored Dec 15, 2023
1 parent 4cf2b32 commit ec827b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/bundlePackageRenv.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down

0 comments on commit ec827b4

Please sign in to comment.