Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

find_uses

Find all functions in that call supplied functions.


Description

Find all functions in that call supplied functions.

Usage

find_uses(envs, funs, match_any = TRUE)

Arguments

envs

Vector of environments to look in. Can be specified by name, position or as environment

funs

Functions to look for

match_any

If TRUE return functions that use any of funs. If FALSE, return functions that use all of funs.

Examples

names(find_uses("package:base", "sum"))

envs <- c("package:base", "package:utils", "package:stats")
funs <- c("match.call", "sys.call")
find_uses(envs, funs)

pryr

Tools for Computing on the Language

v0.1.4
GPL-2
Authors
Hadley Wickham [aut, cre], R Core team [ctb] (Some code extracted from base R)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.