Re: [Rd] Refresh every minute

2011-09-07 Thread Schatzi
, Adele - adele_thomp...@cargill.com Subject: Re: Refresh every minute On Sep 7, 2011, at 22:30 , Schatzi wrote: > That works perfect. Thank you. > Also, for an async solution, try something along these lines library(tcltk) f <- function() barplot(rpois(4, lambda=3)) g <- functio

Re: [Rd] Refresh every minute

2011-09-07 Thread Schatzi
That works perfect. Thank you. On Sep 7, 2011, at 3:27 PM, Schatzi wrote: > I would like some code to rerun every minute, automatically (it calls > time and I want this to update). > Here is the code (it is really the plot that I am interested in): > > > hourc<-as.numeri

[Rd] Refresh every minute

2011-09-07 Thread Schatzi
I would like some code to rerun every minute, automatically (it calls time and I want this to update). Here is the code (it is really the plot that I am interested in): hourc<-as.numeric(substr(date(),12,13)) minc<-as.numeric(substr(date(),15,16)) ftime<-c(hourc,minc) barplot(ftime, axes = F