Skip to contents

This function searches for namespace calls in .R files, i.e., code lines of the format <package name>::<function name>.

Usage

find_namespace_calls(path = "R", triple_colon = FALSE, as_list = FALSE)

Arguments

path

[character(1)]
The path name to a folder. All .R files in this folder and sub-directories will be searched.

triple_colon

[logical(1)]
Also search for :::?

as_list

[logical(1)]
Simplify the output into a list of unique function names per package?

Value

A data.frame. If as_list = TRUE, a list.

Examples

if (FALSE) { # \dontrun{
find_namespace_calls()
find_namespace_calls(as_list = TRUE)
} # }