Stat ET / Eclipse 的 R 语法自动完成?

发布于 2024-10-07 18:22:58 字数 205 浏览 0 评论 0原文

我刚刚转移到 Eclipse/StatET 在 R 中编写代码。我的理解是,语法补全是通过 Ctrl + Space 出现的,您应该获得一些基本的函数/参数信息。但

我几乎什么也没得到:

像“plot”这样的简单函数甚至没有列出。 实际上没有列出以字母 p 开头的函数...它仅显示循环的最少语法。

正常吗?有没有办法将其链接到 R 在线语法文档?

I just moved to Eclipse/StatET to code in R. My understanding is that syntax completions appears with Ctrl + Space and you should get some basic functions/argurments information. But

I get almost nothing:

Simple functions as 'plot' are not even listed.
Actually no function starting with the letter p is listed... It just displays a minimum of syntax for loops for instance.

Is it normal ? Is there a way to link it to the R online syntax documentation?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一世旳自豪 2024-10-14 18:22:58

有几件事。您需要使用 RMI/RJ 控制台(在运行配置的启动类型中指定),代码完成在 RTerm 控制台上不起作用。

在“R Console”选项卡上(仍在运行配置中),您需要“启用对象数据库”

完成后,启动 R 并加载您需要的包。您应该看到“对象浏览器”视图已填充。

到那时我打赌代码完成会起作用!

A couple of things. You need to use the RMI/RJ console (specified in the Launch type of you run configuration), code completion does not work on the RTerm console.

On the "R Console" tab (still in your run configuration) you need to "enable Object DB"

When that is done, launch R and load the packages you need. You should see the "Object browser" view being populated.

At that point I bet code completion will work!

简美 2024-10-14 18:22:58

好的,我能够修复它,我使用的是从 pythonxy 安装程序获得的 Eclipse 32 位。将其替换为最新的 Eclispe 64 位修复了错误的 JRE 错误。

感谢 G 博士的帮助。

Ok I was able to fix it, I was using Eclipse 32bits that I got from the pythonxy installer. Replacing it by the latest Eclispe 64bits fixed the wrong JRE error.

Thanks for your help Dr G.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文