Rev 6137 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{commandArgs}\title{ Command line arguments for R}\usage{commandArgs()}%- maybe also `usage' for other objects documented here.\description{provides access to a copy of the command linearguments supplied when this R session was invoked.}\details{These arguments are captured before the standardR command line processing takes place. This meansthat they are the unmodified values.If it were useful, we could provide support an argumentwhich indicated whether we want the unprocessed or processed values.}\value{A character vector containing the name of theexecutable and the user-supplied command line arguments.The first element is the name of the executable by which R wasinvoked. As far as I am aware, the exact form of this is elementis platform dependent. It may be the fully qualified name, or simplythe last component (or basename) of the application.}%\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}