`%||%` <- function(a, b) if (is.null(a)) b else a
is_counting_number <- function(x) {
is.numeric(x) && x > 0 && (x %% 1 == 0)
}
is_named <- function(x) {
assertthat::has_attr(x, 'names')
}
unique_id <- function() {
substr(tempfile('', ''), 2, 12)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.