How to change the default text editor in R when in Linux?

我们两清 提交于 2019-12-19 09:07:30

问题


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

fix(FunctioName)

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.

Thank you in advance.


回答1:


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




回答2:


Or in R, to override the environment variable:

options(editor = "nano")


来源:https://stackoverflow.com/questions/4221310/how-to-change-the-default-text-editor-in-r-when-in-linux

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!