Skip to content
Prev 3086 / 12125 Next

[R-pkg-devel] [FORGED] Re: Recommendations about adding options to a package in order to change default values of some functions on-the-fly

On 09/07/2018 04:15 AM, Alexandre Courtiol wrote:
<SNIP>
<SNIP>

Point of order Mr. Chairman (and I'm pretty sure it doesn't matter a 
damn) but (on my system at least) .Options is created in the *base* 
package, not in the global environment.

E.g.:

# Freshly started R session.
 > find(".Options")
[1] "package:base"
 > options(mung="gorp")
 > find(".Options")
[1] "package:base"
 > options("mung")
$mung
[1] "gorp"
 > .Options$mung
[1] "gorp"

cheers,

Rolf Turner