find_uses: Find all functions in that call supplied functions.

View source: R/find_uses.R

find_usesR Documentation

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 documentation built on Jan. 18, 2023, 1:08 a.m.