Learn R Programming

lares (version 5.1.4)

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)

Value

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

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.

Examples

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

Run the code above in your browser using DataLab