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

2011-08-02 Thread Anthony Ching Ho Ng
R-help and Barry Thank you for your suggestions. It works, and may I ask how I am able to do the opposite (disable the call back, so that I could control when to show and suppress the output). I would like to make a function to enable/disable the callback similar to the one as follow: enableOutpu

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

2011-07-31 Thread Gabor Grothendieck
On Sun, Jul 31, 2011 at 7:15 AM, Anthony Ching Ho Ng 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

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

2011-07-31 Thread Duncan Murdoch
On 11-07-31 7:15 AM, Anthony Ching Ho Ng 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) It's open source so in theory anything is possible, but there's no bu

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

2011-07-31 Thread Barry Rowlingson
> h <- taskCallbackManager() > h$add(function(expr, value, ok, visible) {if(!visible){print(value)};TRUE}) On Sun, Jul 31, 2011 at 12:15 PM, Anthony Ching Ho Ng 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 com

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

2011-07-31 Thread Anthony Ching Ho Ng
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