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

前端 未结 2 1674
不思量自难忘°
不思量自难忘° 2021-01-13 20:15

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

相关标签:
2条回答
  • 2021-01-13 20:28

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

    0 讨论(0)
  • 2021-01-13 20:45

    Or in R, to override the environment variable:

    options(editor = "nano")
    
    0 讨论(0)
提交回复
热议问题