Description Usage Arguments Examples
View source: R/helper_functions.R
Create assertions with custom error messages.
1 |
condition |
A condition statement that returns a logical value. |
message |
A string. A custom error message to return. This is optional. |
1 2 | var <- 2
assert(is.numeric(var), "This variable is not a numeric!")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.