Nothing
#' Get All Exported Functions From a Package
#'
#' @param pkg a character string of a package name
#'
#' @return character vector of functions names
#' @export
#'
#' @examples
#' get_exported_functions("base")
get_exported_functions <- function(pkg) {
# get all exported functions from a package --------------------------------
# lists all exports of a package (incl. non functions)
exports <- getNamespaceExports(pkg)
is_function <- vapply(exports,
FUN = function(x, ns) {
inherits(x = getExportedValue(ns, x),
what = "function")
},
FUN.VALUE = logical(1),
ns = getNamespace(pkg))
# overlap of exports and functions -> exported functions
functions <- exports[is_function]
return(functions)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.