condition_message_linter {lintr}R Documentation

Block usage of paste() and paste0() with messaging functions using ...

Description

stop(paste0(...)) is strictly redundant – stop(...) is equivalent. stop(...) is also preferable to stop(paste(...)). The same applies to all default condition functions, i.e., stop(), warning(), message(), and packageStartupMessage().

Usage

condition_message_linter()

Tags

best_practices, consistency

See Also

linters for a complete list of linters available in lintr.


[Package lintr version 3.0.2 Index]