Learn R Programming

lares (version 5.1.0)

files_functions: List all functions used in R script files by package

Description

Parses all functions called by an R script and then lists them by package. Wrapper for 'getParseData'. May be of great use for those developing a package to help see what namespace 'importsFrom' calls will be required.

Usage

files_functions(filename, abc = TRUE, quiet = FALSE)

Arguments

filename

Character. Path to an R file (or directory) containing R code files.

abc

Boolean. List functions alphabetically. If FALSE, will list in order of frequency.

quiet

Boolean. Keep quiet? If not, print messages and statusbar.

Value

data.frame. Each row is a function and columns stating number of appearances, percentage, packages, and files searched.

Examples

Run this code
# NOT RUN {
# Choose an R script file with functions
rfile <- file.choose()
files_functions(rfile)
# }

Run the code above in your browser using DataLab