| .check_flag | R Documentation |
.check_flag is a helper function of the imagefluency package
that checks whether an optional parameter is a single logical value
(TRUE or FALSE). If that is not the case, a warning is thrown
and the default value is returned.
.check_flag(
x,
name,
default = FALSE,
action = paste0("Automatically set to ", default, " ...")
)
x |
The value of the parameter. |
name |
The name of the parameter. |
default |
The default value that is used if the check fails. |
action |
Character string. End of the warning message. |
x if the check is passed, otherwise default.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.