Skip to content

bug in options() - help page (PR#1323)

1 message · Brian Ripley

#
Much of this is not a bug.  The situation is complex.

The options list is dynamic: users can add new options at any time.
Options need not be set, and which options are set depends on
the platform.  Many options if unset have an internal default: this is a
protection against a damaged set of options, in particular a broken system
Rprofile file.

It is an incorrect assumption that setting the previous options returned
does re-set the options: it only resets those that were previously set,
not those set since.

In many cases setting an option to NULL will unset it.

There is at least one bug: download.info should not be set, it having been
changed to internet.info (which has an internal default).
On Sat, 23 Feb 2002 o.christensen@lancaster.ac.uk wrote:

            
Some options are documented where they are used: numbers 2 and 4 are, I
know.  I believe `error.messages' is obselete.
That claim is a bug, not least because ``base R'' is undefined!
Right. They can be set if needed, but have internal defaults.
That does not `reset the options', nor is that what the help page example
says it does (note the word `initial').  The same thing happens with
options("error").

I'll add an explicit default for that one.