#' Get corpus
#'
#' This function provides an alternative to accessing corpora
#' like \code{hcorp::classical_1}.
#' Instead, the same corpus can be accessed by calling
#' \code{get_corpus("classical_1")}.
#' @param name (Character scalar) Name of the corpus to access.
#' @export
get_corpus <- function(name) {
checkmate::qassert(name, "S1")
env <- new.env()
utils::data(list = name, package = "hcorp", envir = env)
as.list(env)[[1]]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.