unable to send R code from a knitr document to SublimeREPL

若如初见. 提交于 2019-12-19 10:26:31

问题


I'm using Sublime 3, and I have a very simple question. SublimeREPL is working perfectly with R files, and Sublime compiles perfectly the knitr files (using LaTeXing)

But if I want to send R code from a knitr file (.Rnw) I get the following error:

Cannot find REPL for 'tex.latex.knitr.ing'

(I'm using Ubuntu 14.04 by the way)

Any ideas?


回答1:


Ok, so someone solved it here: https://github.com/wuub/SublimeREPL/issues/165#issuecomment-57658359

Just in case someone has the same problem: this file has to be edited:

~/.config/sublime-text-3/Packages/SublimeREPL/config/R/Main.sublime-menu

and the aditional scope has to be modified in this way:: "additional_scopes": ["tex.latex.knitr.ing"]



来源:https://stackoverflow.com/questions/25935129/unable-to-send-r-code-from-a-knitr-document-to-sublimerepl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!