#' Check empty value (empty string or NA)
#' @export
is_empty <- function(vec){
stringr::str_length(stringr::str_trim(vec))==0 | is.na(vec)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.