fix and edit functions invoke the editor defined in the "editor" argument.
By default, this argument has the value getOption('editor') , as shown in the documentation for editing functions .
Therefore, you can pass the notepad ++ path as an argument to a function, that is:
path <- "C:\\Program Files (x86)\\Notepad++\\Notepad++.exe" fix(somefunction,editor=path)
or set notepad ++ as the default editor by changing the R parameters for the current session, i.e.:
path <- "C:\\Program Files (x86)\\Notepad++\\Notepad++.exe" options(editor=path)
NB
If you want to set a new default parameter for all subsequent sessions, you must edit the Rprofile.site script in the RHome\etc path, as described here .
source share