View source: R/error_handling.R
fail_if | R Documentation |
Fail on not TRUE and give a custom error message.
fail_if(x, msg = "There was an error", extended = F)
x |
(any object) The object to test. |
msg |
(chr) An error message. |
extended |
(lgl) Whether to convert to logical. |
Invisibly returns the input.
fail_if(T)
fail_if(1) #does not convert types
fail_if(1, extended = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.