Using R kernel in interactive window, a key shortcut to execute current chunk/cell and line/selection in interactive when language mode in editor is R #9911
Replies: 3 comments 1 reply
-
this functionality is currently tracked here #273 |
Beta Was this translation helpful? Give feedback.
-
Thanks. Actually I just realized that "Jupyter: Run Selection/Line in Interactive Window" works with R language mode if the When condition has editorLangId == 'r'. Even the cell running commands work if I switch the language mode to Python and then back to R -- until I switch the active tab, after which it stops working. |
Beta Was this translation helpful? Give feedback.
-
Now that the Jupyter extension is officially supporting R (https://github.com/microsoft/vscode-jupyter/blob/113c3e54ac1d3cb81ab6473d1a5fa4a20cce4755/README.md#working-with-other-languages), is there a way to have it send your current R code chunk in an .Rmd file to the interactive window? I suppose you could edit the setting "jupyter.interactiveWindow.cellMarker.codeRegex": "^(#\s*%%|#\s*\<codecell\>|#\sIn\[\d?\]|#\s*In\[ \])" to also match R markdown cells starting with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am experimenting with R in VS code using https://github.com/IRkernel/IRkernel and https://github.com/REditorSupport/vscode-R. It seems to work fine otherwise, but a big problem for me is that I cannot keep the language mode in the editor as 'R' and be able to send chunks/cells or current line/selection to the interactive window, because those keyboard shortcuts seem to work only in Python language mode. If I change the language mode to Python, I lose R syntax highlighting, autocompletion and other goodies provided by https://github.com/REditorSupport/vscode-R.
Beta Was this translation helpful? Give feedback.
All reactions