functionMap (version 1.0.0)

parse_r_script: Find all function calls in an R script

Description

Find all function calls in an R script

Usage

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.