This function opens an editor displaying the analysis code of the Nature Protocols 2009 paper
Details
The edit()
function uses getOption("editor")
to select
the editor. Use, for instance, options(editor="emacs")
to set another
editor.
Examples
if(interactive()){
NP2009code()
}