List all exported functions in a package.

list_functions(pkg = ".")

Arguments

pkg

The package to use, can be a file path to the package or a package object. See [devtools::as.package()] for more information.

info

logical; whether to return additional info (e.g. body and length) for each function. Default is FALSE

character

logical; if `info` is TRUE, then should the body of the function be returned as a character string (default) or language object

Value

list; list of function names only if `info` is FALSE, otherwise a list of names, function bodies and lengths