Debian Codegraph @

R/updates.R

raw
1
2 renv_updates_create <- function(diff, old, new) {
3 structure(
4 list(diff = diff, old = old, new = new),
5 class = "renv_updates"
6 )
7 }
8
9 renv_updates_report <- function(preamble, diff, old, new) {
10
11 lhs <- renv_lockfile_records(old)
12 rhs <- renv_lockfile_records(new)
13 renv_pretty_print_records_pair(
14 preamble,
15 lhs[names(lhs) %in% names(diff)],
16 rhs[names(rhs) %in% names(diff)]
17 )
18
19 }