Skip to content

Only use a single empty line when needed to separate functions or pipes #1238

@IndrajeetPatil

Description

@IndrajeetPatil

cf. https://style.tidyverse.org/syntax.html#vertical-space

Actual

library(styler)

"f <- function() NULL


g <- function() f()" -> code

style_text(text = code)
#> f <- function() NULL
#> 
#> 
#> g <- function() f()

Created on 2024-11-28 with reprex v2.1.1

Expected

library(styler)

"f <- function() NULL


g <- function() f()" -> code

style_text(text = code)
#> f <- function() NULL
#> 
#> g <- function() f()

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