Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@MichaelChirico
Copy link
Collaborator

This enforces the following section of the tidyverse style guide:

https://style.tidyverse.org/pipes.html#no-arguments

@AshesITR
Copy link
Collaborator

Looks good so far. Can we also add a negative test for

x %>% { foo }

just to be sure symbols are allowed in curly braces?

@MichaelChirico
Copy link
Collaborator Author

MichaelChirico commented May 19, 2021 via email

@AshesITR
Copy link
Collaborator

This minimal code returns foo from the chain.
However, if this is correctly not linted, more complex code blocks should also be covered - e.g.

x %>% {
  tmp <- .
  bla <- foo %>% unrelated_stuff(tmp)
  my_combination_fun(tmp, bla)
}

@MichaelChirico
Copy link
Collaborator Author

MichaelChirico commented May 20, 2021 via email

@MichaelChirico
Copy link
Collaborator Author

Updated now. Thanks!

@AshesITR AshesITR merged commit 9c26edf into master May 20, 2021
@AshesITR AshesITR deleted the pipe-call branch May 20, 2021 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants