% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bayesian_update.R
\name{load_tolerance_update}
\alias{load_tolerance_update}
\title{Load saved Bayesian tolerance updates into session cache}
\usage{
load_tolerance_update(
  species = "all",
  path = tools::R_user_dir("oystermapR", which = "data"),
  verbose = TRUE
)
}
\arguments{
\item{species}{Character. Species key or \code{"all"} to load all \code{.rds} files
in \code{path}.}

\item{path}{Character. Directory to load from (default: user-specific data
directory from \code{tools::R_user_dir("oystermapR", "data")}).}

\item{verbose}{Logical. Default TRUE.}
}
\value{
Invisibly: the loaded tolerance list.
}
\description{
Reads a previously saved \code{.rds} file (from \code{\link[=save_tolerance_update]{save_tolerance_update()}}) and
restores it into the session cache. Subsequent calls to \code{\link[=predict_oyster]{predict_oyster()}}
and \code{\link[=score_locations]{score_locations()}} will automatically use the loaded parameters.
}
\examples{
\donttest{
load_tolerance_update("ostrea_edulis")
# Now predict_oyster() uses the updated tolerances automatically
result <- predict_oyster(survey, "ostrea_edulis")
}
}
