Skip to contents

Compare two lockfiles

Usage

compare_lock_pair(x)

Arguments

x

A list of lists or list of 'rt_tibble' with two lockfiles. An output from read_lock().

Value

A tibble

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")
compare_lock_pair(l)
#> # A tibble: 1 x 19
#>   a     b     rver_a rver_b renvver_a renvver_b jaccard pkgs_len_a pkgs_len_b
#>   <chr> <chr> <chr>  <chr>  <chr>     <chr>       <dbl>      <int>      <int>
#> 1 lf_1  lf_2  4.4.1  4.3.2  1.0.7     1.0.3       0.432        294        668
#> # i 10 more variables: pkgs_len_unique_a <int>, pkgs_len_unique_b <int>,
#> #   pkgs_len_common <int>, pkgs_len_total <int>, pkgs_a <list>, pkgs_b <list>,
#> #   pkgs_unique_a <list>, pkgs_unique_b <list>, pkgs_common <list>,
#> #   pkgs_total <list>