Ctrl + Enter behaviour to execute R statements like in RStudio #8908
Unanswered
hcaginlenk
asked this question in
Q&A
Replies: 2 comments 8 replies
-
Beta Was this translation helpful? Give feedback.
7 replies
-
|
I can reproduce this when the .qmd has a parse error anywhere in the document. In that state, Ctrl/Cmd+Enter falls back to sending only the current line. I also see it when a header or fenced div is not separated by a blank line from the following code fence. So fix any syntax errors (even outside the active chunk) and/or add a blank line between headers/divs and code fences. |
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
.qmddocument written only with R,Ctrl + Enteronly sends the line where cursor is located to the console without running it.Expected behaviour
Ctrl + Enterwould 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 + Enterwould 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