[R] Output and history

Liaw, Andy andy_liaw at merck.com
Wed Jul 17 14:34:34 CEST 2002


> From: Peter Dalgaard BSA [mailto:p.dalgaard at biostat.ku.dk]
> 
> Daniel Mastropietro <mastropi at uwalumni.com> writes:
> 
> > Hello,
> > 
> > I have the following two questions, rergarding:
> > 
> > (Output)
> > 1) Is it possible to have the output of a command automatically
> > displayed, without explicitly requesting it after the command, and
> > without using the print() function? For example, I want to see the
> > value of 'a'  when I write for instance 'a <- rep(1,10)'.
> > I tried setting the 'echo' option to TRUE but it has no 
> effect on that.
> 
> No. "<-" creates an invisible object as its return value and they
> don't print until you "visiblify" them. One standard device is to put
> the whole thing in parentheses: (a <- rep(1,10)).

But couldn't he use the taskCallbackManager() to print .Last.value after
every evaluation at the top level?  I'd guess that sort of does what Daniel
wants.

Cheers,
Andy


------------------------------------------------------------------------------
Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it.

==============================================================================

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list