getArg | R Documentation |
Retrieves a user-supplied argument command-line argument with a given name. Argument syntax: name=value
getArg(name, default = NULL, required = FALSE)
name |
The name of the command line argument |
default |
If no value was given by the user, default to this |
required |
Whether the argument is required or not. If TRUE, an error is raised when no value was provided. |
## Not run:
infile <- getArg("inputFile",required=TRUE)
userIQ <- getArg("userIQ",default=0)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.