consecutive_stopifnot_linter {lintr}R Documentation

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()

Tags

consistency, readability, style

See Also

linters for a complete list of linters available in lintr.


[Package lintr version 3.0.0 Index]