dput_to_str <- function(x) {
paste(capture.output(dput(x)), collapse = "\n")
}
classes <- function(x) {
unname(sapply(x, class, USE.NAMES = FALSE))
}
stop_if_dots_not_named <- function(...) {
dotlist <- list(...)
dotnames <- names(dotlist)
if (is.null(dotnames) || any(dotnames == "")) {
abort("Arguments to `...` must be named")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.