Learn R Programming

RTest (version 1.2.6)

get_existence_of_fun: Find out if a function is available

Description

This function checks if a function name or method name is available in the global namespace or the desired package namespace

Usage

get_existence_of_fun(function_name, package)

Arguments

function_name

(character) The name of the function to look up

package

(character) The name of the package where this function might be hidden (not exported)

Value

"global" if it is available, "package" if it's available within the package or an Error if it is not available at all.