get_funcs_from_r_script

0th

Percentile

Extract all functions from an R script

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

Keywords
internal
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’.

Aliases
  • get_funcs_from_r_script
Documentation reproduced from package functionMap, version 1.0.0, License: GPL-2

Community examples

Looks like there are no examples yet.