Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vscode radian does not run the code sometimes

I am using VSCode for R programming for quite some time now. Recently, I decided to switch the vanilla terminal to radian. The highlighting and intellisense all work perfect. However, I am sometimes encountering a strange bug when sending code to the console.

So for instance sometimes when I highlight some line in the editor and hit ctrl+enter or run an entire .rmd chunk, the code does not get executed. The code does get copied to the console, but it's somehow buggy. Often, the console cursor hovers at some wrong bracket and one would have to move the cursor to the end in order to run the code.

Sometimes it's fully buggy displaying: enter image description here at the end of the console code.

Any ideas as to why this may be the case? It's pretty annoying.

like image 314
Rob G. Avatar asked Apr 30 '26 14:04

Rob G.


1 Answers

Try adding options(radian.auto_match = FALSE) to your radian profile.

If you don't already have a radian profile, the most straightforward approach way to make one is to create a file called .radian_profile in the working directory. You can check your working directory by running getwd() in radian when it starts up.

In the .radian_profile file you created, paste this line:

options(radian.auto_match = FALSE)
like image 135
andycraig Avatar answered May 02 '26 05:05

andycraig



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!