R-alpha: options() and .Options -- ?

Ross Ihaka (ihaka@stat.auckland.ac.nz)
Wed, 11 Dec 1996 17:10:59 +1300 (NZDT)

From: Ross Ihaka <ihaka@stat.auckland.ac.nz>
Date: Wed, 11 Dec 1996 17:10:59 +1300 (NZDT)
Message-Id: <199612110410.RAA27584@stat13.stat.auckland.ac.nz>
To: Martin Maechler <maechler@stat.math.ethz.ch>
Subject: R-alpha: options() and .Options -- ?
In-Reply-To: <9612101059.AA13058@>

Martin Maechler writes:
 > This is not a bug report, rather than some remarks as a "request for comments":
 > It is clear that  options( foo = bar )
 > sets the option and also updates the builtin()  .Options  list :
 > 	> options(myopt = pi)
 > 	> .Options$my
 > 	[1] 3.14159265
 > In S-plus, it was (is) possible to use .Options locally in a function frame
 > in order to just affect some options during evaluation of that function.

I have made some changes so that such local assignments to .Options
will work.  The down side is that such assignments will also work at
top level with the changes shadowing the real system options.

This also may be ok.  It would have the advantage that options would
then be preserved from session to session.  Is this a good idea or a
bad idea?
r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch