Skip to contents

utility to see which objects in a loaded/attached package are exported functions, internal (unexported) objects, or datasets

Usage

functions_in_pkg(
  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 dupeRfiles() for files supporting a shiny app that is not a package, e.g.

See dupenames() for objects that are in R packages.

See functions_in_pkg()

See datapack()

Examples

 # functions_in_pkg("datasets")