# will produce lints
lint(
text = "sample(1:10, 2)",
linters = sample_int_linter()
)
lint(
text = "sample(seq(4), 2)",
linters = sample_int_linter()
)
lint(
text = "sample(seq_len(8), 2)",
linters = sample_int_linter()
)
# okay
lint(
text = "sample(seq(1, 5, by = 2), 2)",
linters = sample_int_linter()
)
lint(
text = "sample(letters, 2)",
linters = sample_int_linter()
)
Run the code above in your browser using DataLab