Possible Duplicate:
How to change the default text editor in R when in Linux?
> x=c(1,2,3,4)
> edit(x)
when i input it,the vi editor will open ,but i don’t like vi,can i make nano or gedit to be my edit in R after i input edit(x)?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The solution depends upon how you want to solve the problem.
You can set the
VISUALorEDITORenvironment variables to the text editor of your choice, probably in your shell startup scripts (see~/.bashrcif this is all new to you).If your distribution uses the
/usr/bin/sensible-editortool, you can use theselect-editor(1)tool to update your choice.You can set the
/etc/alternatives/editoror similar files to the editor you wish, iff you want the change to be made system-wide for all users, and your system uses theupdate-alternatives(8)mechanism to manage which specific tool to use for which tasks.