Provides access to a copy of the command line arguments supplied when this R session was invoked.
commandArgs(trailingOnly = FALSE)
| Parameter | Description |
|---|---|
trailingOnly |
logical. Should only arguments after --args be returned? |
# NOT RUN {
commandArgs()
## Spawn a copy of this application as it was invoked,
## subject to shell quoting issues
## system(paste(commandArgs(), collapse = " "))
# }