get_all_pkgs {bazar}R Documentation

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

## Not run: 
get_all_pkgs("as.fun")
get_all_pkgs(as.fun)
get_all_pkgs("stats::median")

## End(Not run)


[Package bazar version 1.0.11 Index]