Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 401 Bytes

seq_linter.md

File metadata and controls

11 lines (6 loc) · 401 Bytes

Pattern: Missing use of seq_len()/seq_along()

Issue: -

Description

Checks for 1:length(...), 1:nrow(...), 1:ncol(...), 1:NROW(...), and 1:NCOL(...) expressions. These often cause bugs when the right hand side is zero. It is safer to use seq_len() or seq_along() instead.

Further Reading