Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

find_references

Get first or all references of an R object


Description

Get first or all references of an R object

Assert that there are no references among the identified globals

Usage

find_references(x, first_only = FALSE)

assert_no_references(x, action = c("error", "warning", "message", "string"))

Arguments

x

The R object to be checked.

first_only

If TRUE, only the first reference is returned, otherwise all references.

action

Type of action to take if a reference is found.

Value

find_references() returns a list of one or more references identified.

If a reference is detected, an informative error, warning, message, or a character string is produced, otherwise NULL is returned invisibly.


future

Unified Parallel and Distributed Processing in R for Everyone

v1.21.0
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.