parse_r_script: Find all function calls in an R script

Description Usage Arguments Value

View source: R/parseRscript.R

Description

Find all function calls in an R script

Usage

1
parse_r_script(rfile, include_base = FALSE, env = NULL)

Arguments

rfile

The .R input file, or a connection to read from.

include_base

Whether to include calls to base functions in the output.

env

Environment to parse the objects into. If 'NULL', then a temporary environment is used.

Value

Named list of data frames, initially with columns: func and type. Type can be currently call and s3, the latter denoting an S3 generic instead of a regular function call.


MangoTheCat/functionMap documentation built on May 7, 2019, 2:10 p.m.