Rev 25118 | Rev 27625 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{commandArgs}\alias{commandArgs}\title{Extract Command Line Arguments}\description{Provides access to a copy of the command line arguments supplied whenthis \R session was invoked.}\usage{commandArgs()}\details{These arguments are captured before the standard \R command lineprocessing takes place. This means that they are the unmodifiedvalues. If it were useful, we could provide support an argument whichindicated whether we want the unprocessed or processed values.This is especially useful with the \code{--args} command-line flag to\R, as all of the command line after than flag is skipped.}\value{A character vector containing the name of the executable and theuser-supplied command line arguments. The first element is the nameof the executable by which \R was invoked. As far as I am aware, theexact form of this element is platform dependent. It may be the fullyqualified name, or simply the last component (or basename) of theapplication.}%\author{DTL}#ifdef unix\seealso{\code{\link{BATCH}}}#endif\examples{commandArgs()## Spawn a copy of this application as it was invoked.## system(paste(commandArgs(), collapse=" "))}\keyword{environment}\keyword{sysdata}\keyword{programming}