read_result: Read a portable result from a local schema registry

View source: R/result_storage.R

read_resultR Documentation

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)

Arguments

file

Character: Result JSON path.

registry

Character: Local registry directory containing versioned schema documents and defaults/v1/defaults.json.

load_data

Logical: Materialize Parquet references.

Value

An S7 report reconstructed from registry declarations.

Examples

# A local registry is supplied explicitly; reading never fetches schemas.
reader <- function(file, registry) read_result(file, registry, load_data = TRUE)

rtemis documentation built on Oct. 20, 2026, 1:06 a.m.