utility to see which objects in a loaded/attached package are functions or datasets, exported or not (internal)
Source:R/utils_PACKAGE_DEV.R
pkg_functions_and_data.Rd
utility to see which objects in a loaded/attached package are functions or datasets, exported or not (internal)
Usage
pkg_functions_and_data(
pkg,
alphasort_table = FALSE,
internal_included = TRUE,
exportedfuncs_included = TRUE,
data_included = TRUE,
vectoronly = FALSE
)
Arguments
- pkg
name of package as character like "EJAM"
- alphasort_table
default is FALSE, to show internal first as a group, then exported funcs, then datasets
- internal_included
default TRUE includes internal (unexported) objects in the list
- exportedfuncs_included
default TRUE includes exported functions (non-datasets, actually) in the list
- data_included
default TRUE includes datasets in the list, as would be seen via data(package=pkg)
- vectoronly
set to TRUE to just get a character vector of object names instead of the data.frame table output
Value
data.table with colnames object, exported, data where exported and data are 1 or 0 for T/F, unless vectoronly = TRUE in which case it returns a character vector
Details
See pkg_dupeRfiles()
for files supporting a shiny app that is not a package, e.g.
See pkg_dupenames()
for objects that are in R packages.
See pkg_functions_and_data()
, pkg_functions_and_sourcefiles(),
See pkg_data()