Skip to content

infix_spaces_linter should include tilde / formula operator and = in function definitions #930

Closed
@MichaelChirico

Description

@MichaelChirico

It's covered by {styler}:

styler::style_text("a~b")
# a ~ b

But not infix_spaces_linter():

lintr::lint("a~b\n", infix_spaces_linter())

This is called out by omission in the style guide, which talks about one-sided formulas:

https://style.tidyverse.org/syntax.html#infix-operators

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions