Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

transform operator-prefixed expressions to be parsable on execute #8590

Open
kevinushey opened this issue Dec 9, 2020 · 2 comments
Open
Milestone

Comments

@kevinushey
Copy link
Contributor

Some users might prefer using their binary operators at the start of new lines when building longer expressions; e.g.

foo <- (
  data
  %>% operation1()
  %>% operation2()
  %>% ...
)

While such code is legal as an entire entity, executing subsets of that code is challenging because outside of a parenthetical context:

data
%>% operation1()

is two separate statements, not one (with the second being invalid).

It would be helpful if RStudio transformed such expressions during interactive execution so that they could be executable while maintaining the semantics expected by the user.

@kevinushey kevinushey added this to the v1.4-juliet-rose milestone Dec 9, 2020
@warnes
Copy link

warnes commented Dec 9, 2020

Please ensure this can easily be activated/deactivated.

@iago-pssjd
Copy link

In line with my comment in issue #8589 and again agree with @warnes I expect to have the chance of configure the suggested behaviour or the current one in RStudio.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants