Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
IndrajeetPatil opened this issue Nov 28, 2024 · 0 comments

Comments

@IndrajeetPatil
Copy link
Collaborator

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()
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant