Learn R Programming

lintr (version 3.1.2)

paren_body_linter: Parenthesis before body linter

Description

Check that there is a space between right parenthesis and a body expression.

Usage

paren_body_linter()

Arguments

Tags

default, readability, style

See Also

Examples

Run this code
# will produce lints
lint(
  text = "function(x)x + 1",
  linters = paren_body_linter()
)

# okay
lint(
  text = "function(x) x + 1",
  linters = paren_body_linter()
)

Run the code above in your browser using DataLab