% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{read_smrg_obj}
\alias{read_smrg_obj}
\title{Read or validate a SimuRg fit object}
\usage{
read_smrg_obj(fpath_i)
}
\arguments{
\item{fpath_i}{String or sg-fit object. If the string is given, the path to
\code{.Rdata} or \code{.json} file with sg-fit object is expected.}
}
\value{
List. A SimuRg fit object with all table components coerced to
data frames.
}
\description{
Loads a SimuRg fit object from an \code{.RData} or \code{.json} file, or accepts an
already-loaded list and ensures all table components (\code{SDTAB}, \code{EVTAB},
\code{COTAB}, \code{CATAB}, \code{SUMTAB}) are proper data frames.
}
\examples{
# Pass an already-loaded sg-fit object
obj <- read_smrg_obj(gfo4cov)
class(obj$SDTAB)

}
\keyword{internal}
