Learn R Programming

lintr (version 3.0.2)

unreachable_code_linter: Block unreachable code and comments following return statements

Description

Code after a top-level return() or stop() can't be reached; typically this is vestigial code left after refactoring or sandboxing code, which is fine for exploration, but shouldn't ultimately be checked in. Comments meant for posterity should be placed before the final return().

Usage

unreachable_code_linter()

Arguments

Tags

best_practices, readability

See Also

linters for a complete list of linters available in lintr.