Re: [R] save and load user modifications of options

2011-05-09 Thread xue wang
Thanks David! I got a solution, though maybe not optimal. In the zzz.r file of the R package, I include the folloing code: .onLoad <- function(libname,pkgname) { myoptions <- list(ngs.python="sage -python",ngs.macs="macs14") if(exists("myoptions",.GlobalEnv)) options(.GlobalEnv$my

Re: [R] save and load user modifications of options

2011-05-07 Thread David Winsemius
On May 6, 2011, at 8:59 PM, xwang14 wrote: Hi, Could anyone help me with the following problem? After I finished a R session and modified some options (for example, set options(editor="neditor")), I want save these modifications so that after I load the saved R data I do not need to modify t

[R] save and load user modifications of options

2011-05-06 Thread xwang14
Hi, Could anyone help me with the following problem? After I finished a R session and modified some options (for example, set options(editor="neditor")), I want save these modifications so that after I load the saved R data I do not need to modify these options again. What is the best way to do th