get_all_pkgs: Packages exporting a function

Description Usage Arguments Value Examples

Description

get_all_pkgs provides all packages (belonging to a given list of packages) exported by a given function.

Usage

1
get_all_pkgs(fun, packages = NULL)

Arguments

fun

function or character. The function of interest.

packages

The packages to look into. If NULL, the list of currently attached packages is explored.

Value

A character vector, the packages.

Examples

1
2
3
4
5
6
## Not run: 
get_all_pkgs("as.fun")
get_all_pkgs(as.fun)
get_all_pkgs("stats::median")

## End(Not run)

bazar documentation built on May 2, 2019, 7:02 a.m.