\HeaderA{getVignetteCode}{Functionality to manage code chunks from a vignette}{getVignetteCode}
\aliasA{editVignetteCode}{getVignetteCode}{editVignetteCode}
\keyword{utilities}{getVignetteCode}
\begin{Description}\relax
These functions allow for processing and management of vignette code
chunks within R.  Users can directly manipulate the code chunks, as
well as evaluate them at their option.
\end{Description}
\begin{Usage}
\begin{verbatim}
getVignetteCode(vigPath, evalEnv = new.env())
editVignetteCode(vigCode, pos, code)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{vigPath}] File path of vignette file to process
\item[\code{evalEnv}] An environment to use for chunk evaluations
\item[\code{vigCode}] The \code{vignetteCode} object to edit
\item[\code{pos}] The position of the code chunk to edit
\item[\code{code}] The new code chunk
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
\code{getVignetteCode}:  This function will call \code{Stangle} using
the \code{tangleToR} driver in order to retrieve the code chunks from
the specified vignette file.  It will then compile the other pertinent
information and return a new \code{vignetteCode} object.

\code{editVignetteCode}:  This function will edit a code chunk
contained within a \code{vignetteCode} and return a new object
representing that change.  The evaluation environment in the new
object is a copy of the original as well, *not* the same environment.
\end{Details}
\begin{Author}\relax
Jeff Gentry
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{Sweave}{Sweave}},\code{\LinkA{vignetteCode}{vignetteCode}},\code{\LinkA{tangleToR}{tangleToR}}
\end{SeeAlso}


