How to change the default text editor in R when in Linux?
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. As always, export the desired editor in $EDITOR or $VISUAL before starting. 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