collectFunctions: collectFunctions

View source: R/collectFunctions.R

collectFunctionsR Documentation

collectFunctions

Description

Collects functions which follow a given name pattern and compares their arguments against a list of allowed arguments

Usage

collectFunctions(
  pattern = "^check",
  globalenv = FALSE,
  allowed_args = c("x", "cfg")
)

Arguments

pattern

Name pattern the function name should match. Default is to collect functions starting with "check"

globalenv

Boolean deciding whether functions in the global environment should be considered or not.

allowed_args

Vector of allowed arguments. If a function contains an argument not listed here it will be ignored and a warning will be returned

Value

a character vector of function calls fulfilling all requirements

Author(s)

Jan Philipp Dietrich

See Also

iamCheck

Examples


collectFunctions()


IAMconsortium/iamc documentation built on July 8, 2023, 11:35 p.m.