#' @title JSON summary
#'
#' @description
#' produces a json summary of includes dataset specified by parameter [d].
#' @param d
#' A \code{string} representing the dataset name which json representation should be returned.
#' @return
#' returns a json representation of an included dataset
#' @author
#' Robert Studtrucker
#' @export
#' @examples
jsonSummary <- function(d) {
requireNamespace("jsonlite")
dat <- d
val <-jsonlite::toJSON(lapply(dat, function(x){as.list(summary(x))}), pretty = TRUE, auto_unbox = TRUE)
return(val)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.