| orderly_compare_packets | R Documentation |
Insignificant differences in the metadata (e.g., different dates and packet IDs) are excluded from the comparison.
orderly_compare_packets(
target,
current,
location = NULL,
allow_remote = NULL,
fetch_metadata = FALSE,
root = NULL
)
target |
The id of the packet to use in the comparison. |
current |
The id of the other packet against which to compare. |
location |
Optional vector of locations to pull from. We might in future expand this to allow wildcards or exceptions. |
allow_remote |
Logical, indicating if we should allow packets
to be found that are not currently unpacked (i.e., are known
only to a location that we have metadata from). If this is
|
fetch_metadata |
Logical, indicating if we should pull
metadata immediately before the search. If |
root |
The path to the root directory, or |
An object of class orderly_comparison. The object can be printed to
get a summary description of the differences, or passed to
orderly_comparison_explain() to display more details.
# Here are two packets that are equivalent, differing only in id
# and times:
path <- orderly_example()
id1 <- orderly_run("data", root = path)
id2 <- orderly_run("data", root = path)
orderly_compare_packets(id1, id2, root = path)
# A more interesting comparison:
id1 <- orderly_run("parameters", list(max_cyl = 6), root = path)
id2 <- orderly_run("parameters", list(max_cyl = 4), root = path)
cmp <- orderly_compare_packets(id1, id2, root = path)
cmp
# A verbose comparison will show differences in the constituent
# components of each packet:
orderly_comparison_explain(cmp, verbose = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.