find_funs: Finds the package of some function

View source: R/NAME_find_funs.R

find_funsR Documentation

Finds the package of some function

Description

A function to identify the installed package(s) for a given function name. find_funs identifies the package(s) in which a given function name f exists.

Usage

find_funs(f)

Arguments

f

function name (chr)

Details

The code of this function was inspired by code from Ben Bolker at https://stackoverflow.com/questions/10553755/name-of-a-package-for-a-given-function-in-r

Value

package_name packages(s) which the function is part of (chr), builtin_package whether the package comes with standard R (a 'builtin' package; lgl), loaded whether that package is currently loaded/attached (lgl)

Examples


 find_funs("qplot")
 find_funs("sdfjkl")



sebastiansauer/prada documentation built on Jan. 17, 2024, 11:05 a.m.