compare_inventory: Compare two inventory objects

Description Usage Arguments Value Examples

View source: R/tree_extract.R

Description

Compare two inventory objects

Usage

1
2
3
4
5
6
7
compare_inventory(
  inventory1,
  inventory2,
  object_types = "exported",
  report_type = c("table", "summary", "objects"),
  summary_file = ""
)

Arguments

inventory1

An inventory object, a data.frame from the 'take_inventory' function

inventory2

A second inventory object, a data.frame from the 'take_inventory' function

object_types

A vector of object types to compare. Default is "exported" objects only, but can be any of c("exported", "non-exported", "data").

report_type

A vector of reporting type preferences. "table" returns a data.frame with one row for each object that differs between the two inventories. "summary" returns concatenated summaries of identified differences. "objects" returns a data.frame with one row for each object which differs between the two inventories, but also includes the objects themselves as well as checksums.

summary_file

A file to store inventory difference summary information. Default is "", which will return the summary in the console.

Value

a list with element 'table'. A text summary will be saved to the file specified in 'summary_file', or printed in the console.

Examples

1
## Not run: compare_inventory(inventory1, inventory2)

kiegan/manager documentation built on Sept. 24, 2020, 10:59 p.m.