[R] monitor variable change

Erich Neuwirth erich.neuwirth at univie.ac.at
Wed Feb 16 15:11:45 CET 2011


You could use any of the gui toolkits (tcltk, gWidgets ...)
and create a watch window which displays the changing value of your
variable in a popup widged.

On 2/16/2011 10:54 AM, Rainer M Krug wrote:
> On 02/16/2011 10:38 AM, Alaios wrote:
>> Dear all I would like to ask you if there is a way in R to monitor in R when a value changes. 
> 
>> Right now I use the sprintf('my variables is %d \n, j) to print the value of the variable. 
> 
>> Is it possible when a 'big' for loop executes to open in a new window to dynamically check only the variable I want to.
> 
> I don't think that this functionality is implemented.
> 
> But I guess you can implement it - would it be possible to re-define th
> "<-" to check if a certain variable is to be changed, and then print it?
> 
> Might be tricky and would slow everything considerably down.
> 
> Just a thought,
> 
> Rainer
> 
> 
>> If I put all the sprintf statements inside my loop then I get flooded with so many messages that makes it useless.  
> 
>> Best Regards
>> Alex
> 
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> 
> 

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list