% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zzz.R
\name{load_object}
\alias{load_object}
\title{Load a dataset from OSF with BiocFileCache}
\usage{
load_object(
  osf_file_name,
  bfc = BiocFileCache::BiocFileCache(tools::R_user_dir("HumanRetinaLRSData", which =
    "cache"), ask = FALSE)
)
}
\arguments{
\item{osf_file_name}{Character scalar. Dataset base name; see
\code{\link{list_osf_files}}.}

\item{bfc}{A \code{\link[BiocFileCache]{BiocFileCache}} object.
Defaults to a per-user package cache.}
}
\value{
A \code{\link[SummarizedExperiment]{SummarizedExperiment}} or a
\code{matrix}, depending on the dataset.
}
\description{
Validates \code{osf_file_name} against the bundled
\file{inst/extdata/metadata.csv} (no internet connection required for
validation). On first use the data files are downloaded from OSF and
cached via \pkg{BiocFileCache}; subsequent calls load from the local
cache.
}
\examples{
\dontrun{
se <- load_object("ROGeneLevelData")
se
}
}
