无法以崇高的文本在 REPL R 中运行选定的行 [英] Not able to run selected lines in REPL R in sublime text

查看:22
本文介绍了无法以崇高的文本在 REPL R 中运行选定的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照这些说明为 sublime text 设置 REPLhttp://www.kevjohnson.org/using-r-in-sublime-text-3/

Followed these instructions to set up REPL for sublime text http://www.kevjohnson.org/using-r-in-sublime-text-3/

R 控制台正在运行.但我无法使用快捷方式将文本推送到控制台Ctrl+Shift+,,l

R console is running. But I am unable to push text to console using the shortcuts Ctrl+Shift+,,l

我一定是在这里做错了什么,无法自己弄清楚.任何帮助表示赞赏.

I must be doing something wrong here, not able to figure it out on my own. Any help appreciated.

我收到以下错误:

Cannot find REPL for 'regexp'

添加示例代码

library("e1071")
data(iris)
m <- naiveBayes(Species ~ ., data = iris)
m
table(predict(m, iris), iris[,5])

推荐答案

REPL 检查范围以了解要运行的控制台,如果没有控制台与语言相关联,则返回错误.可能是您的文件不是 R 语法.

REPL checks scopes to know what console to run, and returns an error if no console is associated to a language. It might have been that your file was not in the R syntax.

更改语法:Command Panl (ctrl+shift+p),设置语法:R

To change the syntax : Command Panl (ctrl+shift+p), Set Syntax: R

这篇关于无法以崇高的文本在 REPL R 中运行选定的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆