From p.dalgaard@kubism.ku.dk  Wed Aug 13 12:13:35 1997
From: p.dalgaard@kubism.ku.dk (Peter Dalgaard BSA)
Date: 13 Aug 1997 13:13:35 +0200
Subject: R-alpha: .Options$digits do not (always) work.
In-Reply-To: Robert Gentleman's message of Wed, 13 Aug 1997 11:58:51 +1200 (NZST)
References: <199708122358.LAA04005@stat1.stat.auckland.ac.nz>
Message-ID: <x290y6z674.fsf@bush.kubism.ku.dk>

Robert Gentleman <rgentlem@stat.auckland.ac.nz> writes:

>   Well it isn't really clear what Splus does to get tst to work. It appears
>   that they use some form of dynamic scope for Options. Clearly, the 
>   assignment,
>     .Options$digits<- xxxx
>   creates a local copy of .Options and changes the value of that. The only
>   way that print can find this local copy is if  it looks up the stack of
>   calling functions to find it (or perhaps Splus squirrels it away somewhere

Couldn't one have the digits argument of print default to
.Options$digits (or is that eval(.Options$digits,
sys.frame(sys.parent)) ??)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: .Options$digits do not (always) work.
Peter Dalgaard BSA