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