An R package to read, write, summarize and compare renv lock files.
- Read lock files as lists or tibbles
- Write lock files
- Summarize and compare lock files
# installation
install.packages(c("dplyr", "jsonlite", "purrr", "renv", "tibble", "tidyr", "remotes"))
remotes::install_github('royfrancis/renvtools')
See the project website for a walkthrough.
Quick start for the impatient.
library(renvtools)
# path to lock file
path <- file.path(system.file("extdata", package = "renvtools"), "renv-r4.4.1.lock")
# read as list
lst <- read_lock(path)
# read as tibble
tbl <- read_lock(path, format = "tibble")
# write lockfile
write_lock(tbl, "renv-mod.lock")
# read multiple lock files
paths <- list.files(file.path(system.file("extdata", package = "renvtools")), full.names = TRUE)
# read as tibble
tbl <- read_lock(paths, format = "tibble")
# read as list
lst <- read_lock(paths, format = "list")
# summarize lock files
d <- summarize_lock(lst)
# compare lock files pairwise
d <- compare_lock(lst)
This R package is offered free and without warranty of any kind, either expressed or implied. I will not be held liable to you for any damage arising out of the use, modification or inability to use this program. This R package can be used, redistributed and/or modified freely for non-commercial purposes subject to the original source being properly cited. Licensed under GPL-3.
If you have an comments, suggestions, corrections or enchancements, kindly submit an issue on the Github issues page.
2024 • Roy Francis