Min*_*Han 5 r visual-studio-code
现在我可以在 Web 浏览器中使用带有 R 内核的 jupyter lab 并使用 VS Code 使用 python 内核编辑 jupyter 笔记本代码,是否可以使用 jupyter notebook 模式在 VS Code 中编辑 R 代码?感谢您的评论和解决方案。
对的,这是可能的。您只需先安装IRkernel(R 内核)即可。
根据文档,运行两行
install.packages('IRkernel')
IRkernel::installspec() # to register the kernel in the current R installation
Run Code Online (Sandbox Code Playgroud)
然后,重新启动 VSCode 并:
就是这样!