Skip to content

seq_linter() should cover seq(dim(x)[1]) #1474

Open
@IndrajeetPatil

Description

@IndrajeetPatil

Follow-up on #1467

This should produce a lint:

library(lintr)

lint(
  text = "seq(dim(x)[1])",
  linter = seq_linter()
)

Created on 2022-07-26 by the reprex package (v2.0.1)

Because

seq(dim(data.frame())[1])
#> [1] 1 0

Metadata

Metadata

Labels

false-negativecode that should lint, but doesn't

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions