Nothing
#' Check types
#'
#' @param x object to check
#' @param types allowed types
#' @param msg error message
#'
#' @keywords internal
#' @noRd
#'
#' @return list version of input
.check_types <- function(x, types, msg = "Incorrect type") {
err <- FALSE
if (inherits(x, types)) {
x <- list(x)
} else if (inherits(x, "list")) {
if (!all(sapply(x, inherits, types))) {
err <- TRUE
}
} else {
err <- TRUE
}
if (err) stop(msg, call. = FALSE)
x
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.