# will produce lints
lint(
text = "stop('test')",
linters = condition_call_linter()
)
lint(
text = "stop('test', call. = TRUE)",
linters = condition_call_linter()
)
lint(
text = "stop('test', call. = FALSE)",
linters = condition_call_linter(display_call = TRUE)
)
lint(
text = "stop('this is a', 'test', call. = FALSE)",
linters = condition_call_linter(display_call = TRUE)
)
# okay
lint(
text = "stop('test', call. = FALSE)",
linters = condition_call_linter()
)
lint(
text = "stop('this is a', 'test', call. = FALSE)",
linters = condition_call_linter()
)
lint(
text = "stop('test', call. = TRUE)",
linters = condition_call_linter(display_call = TRUE)
)
Run the code above in your browser using DataLab