[R] Display/show the evaluation result of R commands automatically

Gabor Grothendieck ggrothendieck at gmail.com
Mon Aug 1 01:39:42 CEST 2011


On Sun, Jul 31, 2011 at 7:15 AM, Anthony Ching Ho Ng
<anthony.ch.ng at gmail.com> wrote:
> Hello R-help,
>
> I wonder if it is possible to configure R, so that it will
> display/show the evaluation result of the R commands automatically
> (similar to the behavior of Matlab)
>
> i.e. If I type x <- 8
>
> it will print 8 in the command prompt, instead of having type x
> explicitly to show the result and perhaps put an ";" at the end to
> suppress the output.
>
> i.e. x <- 8;
>

Not quite the same but perhaps good enough is that at the console this
will give you the last value:

.Last.value


-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com



More information about the R-help mailing list