本文介绍了无法将R代码从针织文档发送到SublimeREPL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Sublime 3,我有一个非常简单的问题. SublimeREPL与R文件完美配合,Sublime可以完美地编译knitr文件(使用LaTeXing)

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)

但是,如果我想从knitr文件(.Rnw)发送R代码,则会出现以下错误:

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

找不到'tex.latex.knitr.ing'的REPL

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

(顺便说一下,我正在使用Ubuntu 14.04)

(I'm using Ubuntu 14.04 by the way)

有什么想法吗?

推荐答案

好,所以有人在这里解决了它: https://github.com/wuub/SublimeREPL/issues/165#issuecomment-57658359

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

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

,必须以这种方式修改其他范围: "additional_scopes":["tex.latex.knitr.ing"]

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

这篇关于无法将R代码从针织文档发送到SublimeREPL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-24 17:13