Ctrl + Enter behaviour to execute R statements like in RStudio #8908
Unanswered
hcaginlenk
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The problem
In a
.qmd
document written only with R,Ctrl + Enter
only sends the line where cursor is located to the console without running it.Expected behaviour
Ctrl + Enter
would send the whole R statement, whether it is a function or a piped statement ( "|>" ) to the console and run it.For example in the above function, I expect that
Ctrl + Enter
would send the whole function to the console and run it, as long as the cursor is place within the function boundaries (as in RStudio). Now, the shortcut only sends the line where the cursor is located. If the cursor is in the first line, the shortcut would only sendadd_zeroes <- function(string) {
without running the code.The behaviour is similar with the pipe statements (that are not invalid or incomplete).
Tried solutions
Opening and closing positron. I use positron in two different computers and the behaviour is the same.
Is there an option I am missing? Thanks in advance!
System details:
Positron Version: 2025.08.0 (user setup) build 130
Code - OSS Version: 1.102.0
Commit: 76ddce5
Date: 2025-08-01T20:29:20.753Z
Electron: 35.6.0
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Windows_NT x64 10.0.19045
Quarto extension v1.123.0
Beta Was this translation helpful? Give feedback.
All reactions