View source: R/utils-approved.R
build_approved | R Documentation |
A utility function to help you build your approved packages and functions list. This can be used by logrx to log unapproved use of packages and functions.
build_approved(pkg_list, file = NULL)
pkg_list |
Named list of character vectors:
|
file |
String. Name of file where the approved tibble will be written to. If not specified, the tibble is returned Default: NULL Permitted Files: .RDS |
For more details see the vignette:
vignette("approved", package = "logrx")
Tibble with two columns (library, function) and one row per function
approved_pkgs <- list(
base = c("library", "mean"),
dplyr = "All"
)
# build and return
build_approved(approved_pkgs)
# build and save
dir <- tempdir()
build_approved(approved_pkgs, file.path(dir, "approved.rds"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.