在Linux中,如何更改R中的默认文本编辑器? [英] How to change the default text editor in R when in Linux?

查看:92
本文介绍了在Linux中,如何更改R中的默认文本编辑器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Linux中使用R进行编程,每次我想通过键入

I am programming using R in Linux and each time I want to edit a function by typing

fix(FunctioName)

使用了VI编辑器,对我而言,它并不是那么方便,我想对其进行更改,使其成为另一个,例如nano. 我正在连接到我们的学校服务器,所以只有外壳,没有图形界面.

The VI editor is used and for me, it is not that handy, I want to change it and make it an other one for example nano. I am connecting to our school server so I have only shell, no graphical interface.

谢谢.

推荐答案

一如往常,请在开始之前在$EDITOR$VISUAL中导出所需的编辑器.

As always, export the desired editor in $EDITOR or $VISUAL before starting.

这篇关于在Linux中,如何更改R中的默认文本编辑器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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