% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shared__utils_try.R
\name{.try_or_warn}
\alias{.try_or_warn}
\title{Try Expression with Fallback and Warning}
\usage{
.try_or_warn(expr, default = NULL, context = "")
}
\arguments{
\item{expr}{Expression to evaluate}

\item{default}{Value to return on error (default: NULL)}

\item{context}{Label included in the warning message (default: "")}
}
\value{
Result of \code{expr}, or \code{default} on error (with warning)
}
\description{
Like \code{.try_or()} but emits a \code{warning()} with the error message
and a context label before returning the default.
}
\keyword{internal}
