find_uses: Find all functions in that call supplied functions.

Description Usage Arguments Examples

View source: R/find_uses.R

Description

Find all functions in that call supplied functions.

Usage

1
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

1
2
3
4
5
names(find_uses("package:base", "sum"))

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

hadley/pryr documentation built on Feb. 20, 2018, 6:11 a.m.