count_calls: Count calls in a script or a directory

Description Usage Arguments Value Examples

View source: R/count-call.R

Description

Count calls in a script or a directory

Usage

1
count_calls(path, ignore_base = TRUE, find_pkgs = TRUE)

Arguments

path

Path to an R script or a directory, in that case all R scripts will be scanned.

ignore_base

Ignore calls from base package.

find_pkgs

Try to find from which package calls are from, need to scan for dependencies with renv.

Value

a data.frame with 2 columns: call and n

Examples

1
2
3
4
5
6
## Not run: 

count_calls("PATH/TO/SCRIPTS")


## End(Not run)

dreamRs/prefixer documentation built on Sept. 14, 2021, 10:50 p.m.