Check if an object has a length greater than 1
1 | is_length_not_1(x, msg = "Length is 1.", fail = TRUE)
|
x |
an object |
msg |
character string with the error message to return if
|
fail |
logical whether to return an error if length is not greater than 1. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.