Extracting Command Line Arguments
1 2 3 |
name |
parameter name, e.g., |
default |
default value to return if parameter is missing |
alt |
alternative parameter name, e.g. long form code'–file' |
required |
logical that indicates if the parameter is required. |
trailing.only |
logical that indicates if the parameter should be looked in the trailing arguments only, or in the arguments meant for R or Rscript. |
as.is |
logical that indicates if the name should be looked up as is in the command line argument or with a double/single dash prefix. |
args |
vector of command line argument to parse |
with.details |
logical that indicates if details about the argument match should be returned. |
error |
logical that indicates if an error should be raised when the command line arguments do not meet the constrains, e.g., required. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.