functionMap (version 1.0.0)

get_funcs_from_r_script: Extract all functions from an R script

Description

Reads the file into a temporary environment, and checks whether the objects in this environment are functions.

Usage

get_funcs_from_r_script(rfile, env = NULL)

Arguments

rfile
The .R input file.
env
An environment to evaluate the code in. If NULL, a new temporary environment is used.

Value

Named list of function objects, they also include the source code, in a parsed data base form, as attribute ‘src’.