Skip to contents

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

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