find_uses {pryr}R 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)

[Package pryr version 0.1.6 Index]