Description Usage Arguments Details Value
View source: R/parse_argument.R
An argument definition as passed to function_ is checked and
parsed. The argument is expected to have the syntax name ~ type: default
where the : default is optional specification of the default value.
1 | parse_argument(arg)
|
arg |
A language object representing the argument. |
Note that since a default value can be NULL, it is necessary to
check whether the default was specified in the argument, see the return value.
list with the following entries:
type character: the type
name character: the name
has_default logical: whether a default value was specified
default the default value (or NULL if not specified.)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.