I would like to change default editor in RStudio (Windows 7) to notepad++.
I know that I should use
options(editor = "notepad")
and then run, for example:
mean <- edit(mean)
but when I type notepad++ I get this error
options(editor = "notepad++")
mean <- edit(mean)
Error in edit(name, file, title, editor) :
unable to run editor 'notepad++'
I Windows I can run notepad++ in console by typing "start notepad++".
I would be very grateful for help!
Here is my Session Info:
> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=Polish_Poland.1250 LC_CTYPE=Polish_Poland.1250 LC_MONETARY=Polish_Poland.1250
[4] LC_NUMERIC=C LC_TIME=Polish_Poland.1250
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_2.15.2
Set Notepad++ as Default Text EditorRight-click on your dummy file and select “Open with.” You will see Notepad and WordPad as suggested options. Select “Choose another app” instead. Click on more apps with an arrow pointing downward.
To execute the line of source code where the cursor currently resides you press the Ctrl+Enter key (or use the Run toolbar button): After executing the line of code, RStudio automatically advances the cursor to the next line.
Ok, it was really simple:
options(editor = "C:/Program Files (x86)/Notepad++/notepad++.exe")
Sorry for the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With