Only use bundles from trusted sources: the checksums establish integrity, not authenticity, and the metadata and measurements contain serialized R objects. Version 2 preserves measurements exactly. Legacy version 1 bundles remain readable, but their decimal CSV cannot guarantee exact numeric/reference replay. Version 2 uses authoritative RDS measurements; the CSV is a nonbinding preview checked for integrity and structure, not used as a second measurement source.
Arguments
- path
Bundle directory written by
pr_write_bundle().
Value
A validated pr_trial object.
Examples
trial <- pr_example_trial("custom")
path <- tempfile("pressr-bundle-")
pr_write_bundle(trial, path)
restored <- pr_read_bundle(path)
identical(restored$pressure, trial$pressure)
#> [1] TRUE
unlink(path, recursive = TRUE)