可以在Emacs ESS中获得类似于Rstudio中可用的R的代码完成吗? [英] Is it possible to get code completion for R in Emacs ESS similar to what is available in Rstudio?

查看:191
本文介绍了可以在Emacs ESS中获得类似于Rstudio中可用的R的代码完成吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Rstudio具有很好的代码完成功能。它提供了一个从给定字符串开始的函数以及函数和参数定义的快速查看。



ESS足够强大,熟悉我,并集成到Emacs在那里我进行大部分的工作 - 所以我犹豫不决,但这个功能让我想起了这样一个举动。



是否可以将此功能集成到Emacs ESS中?



Emacs ESS有什么类似的东西吗?



任何希望(如果有的话) ,我该如何支持这样的努力?)



解决方案

由于Deepayan的rcompgen软件包(现在升级为R作为utils包的一部分)。所以当我输入

  lm(

,然后点击TAB打开一个新的缓冲区,让我在上面的窗口的左侧:可用的选项到手头的功能,我不认为你可以直接显示帮助



在打字时,还有一种方法可以在迷你缓冲区中获取上下文相关帮助,但是我已经放弃了如何/在哪里打开。 p>

Rstudio has a great code completion feature. It provides a quick view of functions that start with a given string, as well as function and parameter definitions.

ESS is powerful enough, familiar to me, and integrated into Emacs, where I conduct most of my work - so I am hesitant to move, but this feature is making me consider such a move.

Is it possible to integrate this feature into Emacs ESS?

Is there anything similar to this for Emacs ESS?

Any hope that there will be (and if so, how could I support such an effort?)

解决方案

You do get the completion thanks to the rcompgen package by Deepayan (now "promoted" into base R as part of the utils package). So when I type

lm(

and hit TAB a new buffer opens which gets me the left-hand side of your window above: the available options to the function at hand. I don't think you can show the help directly though.

There is / was also a way to get context-sensitive help in the mini-buffer when typing but I have forgottten how/where that gets turned on.

这篇关于可以在Emacs ESS中获得类似于Rstudio中可用的R的代码完成吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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