build_approved {logrx} | R Documentation |
Build approved packages and functions tibble
Description
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.
Usage
build_approved(pkg_list, file = NULL)
Arguments
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 |
Details
For more details see the vignette:
vignette("approved", package = "logrx")
Value
Tibble with two columns (library, function) and one row per function
Examples
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"))
[Package logrx version 0.3.1 Index]