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
Run current line or selection (Ctrl + Enter) does not execute properly if piped code is not formatted in specific way. #6248
Comments
Other example from #7256:
|
Hi @R-Hannibal, I've downloaded the latest preview build (1.4.720) and can confirm the above specific issue as I described is fixed. However, the following does not work: mtcars %>%
filter(
mpg > 20) %>% select(everything()) If you place cursor on row 3 and hit ctrl+enter you get the following error: Error: unexpected ')' in " mpg > 20)" |
Same as @m1kejay, it looks like the previous reprex are fixed but the last one is not on version 1.4.874. Reopening
|
Kevin, if the fix for this case is clear, let's fix for 1.4. Otherwise, we should move to 1.5 due to where we are in the 1.4 release. |
Verified both reprexes in 1.4.938 |
System details
Steps to reproduce the problem
In an .rmd file, type the following inside an R chunk:
Place cursor on line three or four and hit ctrl+enter. R will only run from line three, which produces the following (expected) error:
Error: unexpected ')' in " mpg > 20)"
.The following code works as I expect:
Placing cursor on line 3-5 and hitting ctrl+enter executes the entire pipe.
Describe the problem in detail
When code is formatted as in my first code example, R does not execute the entire pipe, but only from line 3/4 when my cursor is on line 3/4. However, if the code is formatted as in the second example, placing the cursor on line 3-5 and hitting ctrl+enter executes the whole pipe.
Describe the behavior you expected
I expect the entire pipe to be executed when placing the cursor on line 3/4 in first example.
The text was updated successfully, but these errors were encountered: