read_sframe: Read an instrument from a .sframe file

View source: R/read_write_sframe.R

read_sframeR Documentation

Read an instrument from a .sframe file

Description

Reads a .sframe JSON file and reconstructs an sframe instrument object. The SHA-256 integrity hash is verified on load unless validate = FALSE.

Usage

read_sframe(path, validate = TRUE)

Arguments

path

Character. The path to a .sframe file.

validate

Logical. Whether to validate the loaded instrument with validate_sframe(). Defaults to TRUE.

Value

An sframe object.

See Also

write_sframe(), validate_sframe()

Examples

instr <- read_sframe(
  system.file("extdata", "tourism_services_demo.sframe",
              package = "surveyframe")
)
print(instr)

surveyframe documentation built on July 25, 2026, 1:07 a.m.