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

Peter Dalgaard BSA p.dalgaard@kubism.ku.dk
13 Aug 1997 13:13:35 +0200


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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-