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

View source: R/other_functions.R

files_functionsR Documentation

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.

See Also

Other Tools: autoline(), bind_files(), bring_api(), chr2num(), db_download(), db_upload(), export_plot(), export_results(), font_exists(), formatColoured(), formatHTML(), get_credentials(), glued(), grepm(), h2o_selectmodel(), haveInternet(), image_metadata(), importxlsx(), ip_data(), json2vector(), list_cats(), listfiles(), mail_send(), markdown2df(), move_files(), msplit(), myip(), quiet(), read.file(), statusbar(), tic(), try_require(), updateLares(), warnifnot(), what_size()

Examples

## Not run: 
# Choose an R script file with functions
rfile <- file.choose()
files_functions(rfile)

## End(Not run)

lares documentation built on Nov. 5, 2023, 1:09 a.m.