Displaying 1 result from an estimated 1 matches for "restoreopt".
Did you mean:
restoreip
2004 Dec 14
1
Multiple options for a package
...eeks ago, i ended up with a list of 125
elements...
PS2: an other related topic is Saving/Restore options. For my personal
needs (testing within a session), I coded following functions:
saveOptions <- function(file="R.options",...){
opts=options(...)
save(opts,file=file)
}
restoreOptions <- function(file="R.options"){
bool=TRUE
.tmp=new.env()
if (!file.exists(file))
{
warning(paste("file ", file, " does not exist"))
bool=FALSE
}
else
{
}
load(file,.tmp)
opts = get("opts",envir=.tmp)
option...