Learn R Programming

lintr (version 3.0.2)

consecutive_stopifnot_linter: Force consecutive calls to stopifnot into just one when possible

Description

stopifnot() accepts any number of tests, so sequences like stopifnot(x); stopifnot(y) are redundant.

Usage

consecutive_stopifnot_linter()

Arguments

Tags

consistency, readability, style

See Also

linters for a complete list of linters available in lintr.