[R] tracking data

Dirk Eddelbuettel edd at debian.org
Sat Nov 17 18:42:30 CET 2001


  "Christian" == ozric  <ozric at web.de> writes:
  Christian>  hello, is it possible in R to combine with a RODBC query a
  Christian> timing/date function to refresh plots and analysis after a time
  Christian> step automatic ( example: i get via php/mySql every day 100
  Christian> records and would like refresh a linear regression every end of
  Christian> day at 8.00 p.m. ) ?

Yes, in particular with the tcltk toolkit and its event loop.  I can't name
the command with which you would control the event loop, though.

If you want to keep it in R itself, just use something like 

   while(1) {
     do_my_data_gathering_from_mySQL()
     do_my_plotting()
     Sys.sleep(24*60*60)	# sleep one day
   }

with suitable code in those two do_my_* functions.

Dirk

-- 
Better to have an approximate answer to the right question 
than a precise answer to the wrong question. -- John Tukey
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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