我刚刚开始在VS代码中使用R,并且我的脚本当前存储为RMD文件。我很确定我无法进行调试,因为我正在使用的R版本没有RMD调试器,但是当我尝试运行而不调试时(从运行> run而无需调试 / ctrl + f5)时,请提示对话框说:“您没有调试R Markdown的扩展名。”当然,我不需要调试器就不需要调试吗?
显然,我仍然可以一次或选择代码来运行大块,因此这比严重的问题更令人讨厌。
I've just started using R in VS Code and my script is currently stored as an RMD file. I'm pretty sure I can't debug this as there's no RMD debugger for the version of R I'm using, but when I try to run without debugging (from Run > Run without Debugging / Ctrl + F5) it prompts a dialogue box saying 'You don't have an extension for debugging R Markdown.' Surely I don't need a debugger to run without debugging?
I can obviously still run chunks at a time, or by selecting code, so this is more of an annoyance than a serious issue.
发布评论
评论(1)
我在VSCODE环境中使用rmarkDown进行了测试和成功。如果使用Mac,请在下面安装此扩展名:
https://marksetplace.visalstudio.com/项目?itemName = tianyishi.rmarkDown
另一个参考:
希望它能有所帮助。
I have tested and succeeded using Rmarkdown in the VSCode environment. If you use Mac, install this extension below:
https://marketplace.visualstudio.com/items?itemName=TianyiShi.rmarkdown
another reference:
https://towardsdev.com/r-markdown-notebook-in-vs-code-3adb5a61417a
Hope it helps.