You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Radian "works" but won't run my code properly #1090
If I try several times in a row, it prints out the same thing, but adds more closing parentheses at the end.
On the other hand, if I try to run my code via ctrl + enter (without shift), radian runs only the last line of the code. It doesn't read or recognize anything prior to the last line of my file. For example, I will get an "object not found" error if I create an object on the first line and try to print it on the second. Only if I first highlight all the code and then press ctrl + enter will it print ou the entire selection and the proper result in the radan console.
In case you're interested in a temporary solution, you should know that you should be able to delete the ") at the end. Doing so and pressing enter will send the rest of the command to the terminal.
If this happens everytime it will get annoying, though, so you have have found you prefer Ctrl + A, Ctrl + Enter, though the output is difficult to read with all the intertwined code in the terminal.
Also, Ctrl + Enter and Ctrl + Shift + Enter do very different things. The latter executes the whole active document file (by sending a source(...) call inside R, while the former just sends the current line of text to the terminal.
Does this bug appear very often for you, or can you reliably reproduce it? I have previously encountered the behaviour but I can't reproduce it so never bothered to raise an issue.
There's a partial fix here in #820. It solves the duplicated brackets/quotes/parens issue but it doesn't solve the problem of code not actually being run when you use ctrl+enter, at least for me. It's still a substantial QOL improvement though to not have typos forced into the code constantly.
I have this typo constantly. I assumed it was just related to UNC paths on my Windows machine. But good to know others experience it too. It drives me crazy and is a big factor why I use RStudio more than VS Code for my R development.
Activity
LucasFA commentedon May 25, 2022
In case you're interested in a temporary solution, you should know that you should be able to delete the
")at the end. Doing so and pressing enter will send the rest of the command to the terminal.If this happens everytime it will get annoying, though, so you have have found you prefer Ctrl + A, Ctrl + Enter, though the output is difficult to read with all the intertwined code in the terminal.
Also, Ctrl + Enter and Ctrl + Shift + Enter do very different things. The latter executes the whole active document file (by sending a
source(...)call inside R, while the former just sends the current line of text to the terminal.Does this bug appear very often for you, or can you reliably reproduce it? I have previously encountered the behaviour but I can't reproduce it so never bothered to raise an issue.
natereal commentedon Jul 4, 2022
I am also having this issue. I cannot reproduce it reliably, but it breaks my work flow to the point that VS Code is barely use-able.
D3SL commentedon Oct 9, 2022
There's a partial fix here in #820. It solves the duplicated brackets/quotes/parens issue but it doesn't solve the problem of code not actually being run when you use ctrl+enter, at least for me. It's still a substantial QOL improvement though to not have typos forced into the code constantly.
bschneidr commentedon Jun 16, 2023
I have this typo constantly. I assumed it was just related to UNC paths on my Windows machine. But good to know others experience it too. It drives me crazy and is a big factor why I use RStudio more than VS Code for my R development.
benz0li commentedon Jul 10, 2023
See also issue #1390.
github-actions commentedon Jul 10, 2024
This issue is stale because it has been open for 365 days with no activity.
ThomasSoeiro commentedon Sep 22, 2026
@Fred-Wu @eitsupi @grantmcdermott Close as obsolete/duplicate of #1390?
eitsupi commentedon Sep 22, 2026
This is outdated, so I'm closing it.
Please let me know if you continue to experience problems.
...and, please try arf console instead of radian.
https://github.com/eitsupi/arf