read_result: Read a portable result from a local schema registry
Description
Reconstruct the report's classes from the supplied schema and defaults
artifacts. Parsing does not open referenced files. With load_data = TRUE,
verify file integrity and dimensions, then validate the materialized values.
Native fitted objects are not restored.
Usage
read_result(file, registry, load_data = FALSE)
Value
An S7 report reconstructed from registry declarations.
Arguments
file
Character: Result JSON path.
registry
Character: Local registry directory containing versioned
schema documents and defaults/v1/defaults.json.
# A local registry is supplied explicitly; reading never fetches schemas.reader <- function(file, registry) read_result(file, registry, load_data = TRUE)