% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jgd.R
\name{with_jgd_ext}
\alias{with_jgd_ext}
\title{Scoped extended graphics context (experimental)}
\usage{
with_jgd_ext(json, expr)
}
\arguments{
\item{json}{A single JSON string representing the extension object.
Must be valid JSON; an error is raised otherwise.  Unlike \code{\link[=jgd_ext]{jgd_ext()}},
\code{NULL} is not accepted (use \code{jgd_ext(NULL)} to clear ext explicitly).}

\item{expr}{Expression to evaluate with the extension active.}
}
\value{
The result of evaluating \code{expr}.
}
\description{
Temporarily sets extension fields for the duration of \code{expr}, then clears
ext on exit (sets to \code{NULL}).
}
\section{Lifecycle}{

\strong{Experimental.} This API may change in future versions.
}

