fun_info: Find package and formals for exported and non-exported...

Description Usage Arguments Value

View source: R/fun_info.R

Description

This function takes care of the extraction of information related to a function, i.e. the name of the function, the package(s) it belongs to (if it does belong to any packages), whether or not it is exported from these packages, and the formals of these functions. If the function also can be found in .GlobalEnv, then it will be registered with package given as "NULL".

Usage

1
fun_info(target)

Arguments

target

This can either be the function itself, or it can be the name of it (as a symbol or a character-string), or it can e a call or an expression that contains the desired function.

Value

A list containing the name of the function (as a character-string), the package it belongs to (or NULL) if no package was detected, and the arguments of the function. If the function was given as a call or expression, any values specified there will be included, otherwise the default values will be used instead.


LAJordanger/leanRcoding documentation built on Feb. 27, 2020, 4:42 p.m.