find_namespace_calls: Namespace calls

View source: R/find_namespace_calls.R

find_namespace_callsR Documentation

Namespace calls

Description

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.

See Also

Other package helpers: Dictionary, Storage, check_missing(), identical_structure(), input_check_response(), match_arg(), package_logo(), print_data.frame(), print_matrix(), system_information(), unexpected_error(), user_confirm()

Examples

## Not run: 
find_namespace_calls()
find_namespace_calls(as_list = TRUE)

## End(Not run)

oeli documentation built on June 8, 2025, 11:40 a.m.