functionMap (version 1.0.0)

parse_r_folder: Parse one or more folders of R scripts

Description

Parse one or more folders of R scripts

Usage

parse_r_folder(rpath, rfilepattern = default_r_file_pattern(), include_base = FALSE, env = NULL)

Arguments

rpath
Character vector of folders and files. Files are taken as given, folders are listed for files matching `rfilepattern`.
rfilepattern
Pattern of file names to analyse. By default files with `.R`, `.r`, `.S` and `.s` extensions are used.
include_base
Whether to include functions from the `base` package.
env
Environment to parse the files into. If `NULL`, then a separate temporary environment is used for each file.

Value

A named list with one entry for each analyzed functions. Each entry contains the names of the functions called.