4 ms·
It looks like, as far as I can tell, VS Code doesn't support the interactive window for working in R, which was a bit of a surprise to me when i looked it up.
by RobinL 3y ago
It looks like, as far as I can tell, VS Code doesn't support the interactive window for working in R, which was a bit of a surprise to me when i looked it up.
The python interactive window has pretty much fully replaced my use of jupyter, since it gives you notebook-style output without the annoyance of the notebook format. My usual workflow is highlighting lines of code and shift-enter to execute (there's also a cells syntax).
I'm surprised by this because it _is_ possible to use R in Jupyter (although I never really liked the experience, R Studio was far superior).
- yabbs 3y ago? Yes it does.
- aiisjustanif 3y agoPlease supply references for the audience.
- RobinL 3y agoI'm specifically referring to: https://code.visualstudio.com/docs/python/jupyter-support-py https://code.visualstudio.com/docs/python/jupyter-support-py The support for R looks a bit different (to me at least?): https://code.visualstudio.com/docs/languages/r https://code.visualstudio.com/docs/languages/r In the screenshot the window on the right does not look comparable to the output in a jupyter notebook. It looks more like a standard terminal. e.g. does it support interactive charts, html tables etc? The Python interactive window uses the ipykernel package to allow rich outputs like that. I still might be wrong and would like to be corrected on this, since it would mean R support in VS Code is now better than I thought (I haven't tried it fora. while)
- ZunarJ5 3y agoI use r in a Jupyter Notebook in VS via IRKernel. It's a gem.
- RobinL 3y agoOh - nice, thanks - so it looks like the interactive window (which is effectivey the same as the output in a jupyter notebook) is also possible, but not (yet) 'properly'/'officially' supported https://github.com/REditorSupport/vscode-R/issues/1412 https://github.com/REditorSupport/vscode-R/issues/1412