randy3k / radian

A 21 century R console
MIT License
1.96k stars 73 forks source link

How do I keep radian open in VScode after running into errors? #423

Closed cyrilcros closed 1 year ago

cyrilcros commented 1 year ago

I run radian in a conda environment, by linking my conda environment to the settings.json file. The default options are --no-save --no-restore. Unfortunately opening a R terminal or running chunks of R code makes radian crashes after a short while - and crucially the screen flashes to fast for me to get a good look at the error. I then get a "terminal process terminated with exit code (1)" uninformative message. Is there any way to prevent radian from closing here? If I start radian from the terminal it drops me into a REPL as expected.

From my settings.json:

"files.associations": {
    "*.Rmd": "rmd"
},
"r.rpath.linux": "/home/cros/envs/conda_env/r-generic/bin/R",
"r.rterm.linux": "/home/cros/envs/conda_env/r-generic/bin/radian",
"r.bracketedPaste": true,
"r.sessionWatcher": true,
"r.plot.useHttpgd": true,
"remote.autoForwardPorts": true,
"[r]": {
    "editor.defaultFormatter": "REditorSupport.r",
    "editor.formatOnSave": true
  },
"[rmd]": {
    "editor.defaultFormatter": "REditorSupport.r",
    "editor.formatOnSave": true
}
cyrilcros commented 1 year ago

Ok it has to do with a missing Rhome when I record the screen in slow-mo