Summarize lock files
Arguments
- x
A list of lists or list of 'rt_tibble'. An output from
read_lock()
.
Value
A tibble with following columns:
label: Lock file label. A label is created if input paths are not named.
rver: Version of R
renvver: Version of renv package
pkgs_len: Number of packages in the lock file
repositories: A data.frame with repo and counts
sources: A data.frame with source and counts
pkgs: A list of character vector of package names
pkgs_req: A list of character vector of required package names
Examples
paths <- c(
file.path(system.file("extdata", package = "renvtools"), "renv-r4.4.1.lock"),
file.path(system.file("extdata", package = "renvtools"), "renv-r4.3.2.lock")
)
l <- read_lock(paths, format = "list")
summarize_lock(l)
#> # A tibble: 2 x 8
#> label rver renvver pkgs_len repositories sources pkgs pkgs_req
#> <chr> <chr> <chr> <int> <named list> <named list> <named li> <named list>
#> 1 lf_1 4.4.1 1.0.7 294 <df [3 x 2]> <df [4 x 2]> <chr> <named list>
#> 2 lf_2 4.3.2 1.0.3 668 <df [3 x 2]> <df [3 x 2]> <chr> <named list>