funsInFile: List all R functions used in a file

Description Usage Arguments Value

View source: R/funsInFile.R

Description

Searches an .R file for function names and returns a list with the names of all functions found, grouped by package(s) that contain the functions. Only searches in the current namespace, so only attached packages will be searched for the function names.

Usage

1
2
3
4
5
funsInFile(
  filename,
  alphabetic = TRUE,
  exclude_pkgs = c("base", "stats", "utils", "methods", "graphics", "grDevices")
)

Arguments

filename

Path to the R script file (only the .R extension is supported)

alphabetic

Sort the result alphabetically or not. (Default: TRUE)

exclude_pkgs

A vector of packagenames that should be excluded from the result. Set to NULL to include all. (Default: c("base", "stats", "utils", "methods", "graphics", "grDevices"))

Value

A list of function names found in filename grouped by package


KasperSkytte/ksatools documentation built on April 7, 2021, 4:26 p.m.