#' Data Sets
#'
#' Shows the datasets of a package.
#'
#' Returns a character vector containing the names of the datasets in the
#' package given as the argument.
#'
#' @param pkg the name of a package.
#' @export
#' @author Marc Choisy.
datasets <- function(pkg) {
data(package = pkg)$results[, "Item"]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.