#' Create named list from character vector.
#'
#' A wrapper for setNames(vector())
#'
#' @param nms (character) names for list
#'
#' @return list
#' @export
#'
#' @keywords general, lists
#'
#' @examples
#' enlist(letters)
enlist <- function(nms) {
stopifnot(is.character(nms) && is.null(dim(nms)))
stats::setNames(vector("list", length(nms)), nms)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.