% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bayesian_update.R
\name{save_tolerance_update}
\alias{save_tolerance_update}
\title{Save Bayesian tolerance updates to disk}
\usage{
save_tolerance_update(
  species = "all",
  path = tools::R_user_dir("oystermapR", which = "data"),
  verbose = TRUE
)
}
\arguments{
\item{species}{Character. Species key or \code{"all"} to save all cached species.}

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

\item{verbose}{Logical. Default TRUE.}
}
\value{
Invisibly: path(s) to saved file(s).
}
\description{
Serialises the current session cache for a species to an \code{.rds} file so
that updated parameters persist across R sessions. Load again with
\code{\link[=load_tolerance_update]{load_tolerance_update()}}.
}
\examples{
\donttest{
save_tolerance_update("ostrea_edulis")
save_tolerance_update("all", path = "data/bayes_updates/")
}
}
