isTRUE <- function(x) {
is.logical(x) && length(x) == 1L && !is.na(x) && x
}
isFALSE <- function(x) {
is.logical(x) && length(x) == 1L && !is.na(x) && !x
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.