% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_write_sframe.R
\name{read_sframe}
\alias{read_sframe}
\title{Read an instrument from a .sframe file}
\usage{
read_sframe(path, validate = TRUE)
}
\arguments{
\item{path}{Character. The path to a \code{.sframe} file.}

\item{validate}{Logical. Whether to validate the loaded instrument with
\code{\link[=validate_sframe]{validate_sframe()}}. Defaults to \code{TRUE}.}
}
\value{
An \code{sframe} object.
}
\description{
Reads a \code{.sframe} JSON file and reconstructs an \code{sframe} instrument object.
The SHA-256 integrity hash is verified on load unless \code{validate = FALSE}.
}
\examples{
instr <- read_sframe(
  system.file("extdata", "tourism_services_demo.sframe",
              package = "surveyframe")
)
print(instr)
}
\seealso{
\code{\link[=write_sframe]{write_sframe()}}, \code{\link[=validate_sframe]{validate_sframe()}}
}
