% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extdata-lazy-fetch.R
\name{.lazy_fetch_local_path}
\alias{.lazy_fetch_local_path}
\title{Resolve the local path of a v0.9.94 lazy-fetch cache file}
\usage{
.lazy_fetch_local_path(name)
}
\arguments{
\item{name}{Base name without \code{.rds} extension. Must be one of
\code{.SOILKEY_LAZY_FETCH_CACHES}.}
}
\value{
Character path to a readable .rds file, or \code{NULL} if
        the cache is not yet present locally.
}
\description{
Internal helper used by every lazy-fetch loader (\code{load_kssl_sample},
\code{load_kssl_nasis_sample}, \code{load_afsp_sample},
\code{load_wosis_stratified_sample}). Looks in three places:
\enumerate{
  \item Bundled \code{inst/extdata/<name>.rds} (back-compat for
        developer checkouts and pre-v0.9.94 install paths).
  \item User cache at \code{tools::R_user_dir("soilKey", "data")}.
  \item Returns \code{NULL} if neither exists -- the caller then
        decides whether to prompt the user for an on-demand download.
}
}
\keyword{internal}
