Learn R Programming

bazar (version 1.0.11)

get_all_pkgs: Packages exporting a function

Description

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

Usage

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

Run this code
# NOT RUN {
get_all_pkgs("as.fun")
get_all_pkgs(as.fun)
get_all_pkgs("stats::median")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab