| getParam | R Documentation |
params global variableReturns an element of the global params variable that is normally used to send parameters
to a script from the Makefile generated by rmake. Script parameters may be defined with
the params argument of the rRule() or markdownRule() functions.
getParam(name, default = NA)
name |
Name of the parameter |
default |
Default value to be returned if the |
The function returns an element of the given name from the params variable that is created
inside the Makefile recipe. If the params global variable does not exist (the script
is likely being executed directly, i.e., not from the Makefile generated by rmake),
the default value is returned and a warning is generated. If the params global variable
exists but it is not a list or the name element does not exist in it, an error is thrown.
Michal Burda
rRule(), markdownRule()
task <- getParam('task', 'default')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.