[R] save results from cron job

Christian Schulz c.schulz at metafacts.de
Wed Nov 21 15:47:18 CET 2001


hello,
i would like  program in future
more complex analysis, but i
have problems find a good way to save
the result's (i.e. correlation's, anova, clusterSolutions)
in a textfile.....

i attempt several things  i.e. "save" but when i use it and save it
to my htdocs folder for visualize in WWW it works , but i can't use it
in a html-formular (open the file)) , beacuse R "sitting on it"
Graphic output works fine !!!

Have got anybody an idea ???

Thanks for advance & regards,
christian


query_ausgaben <- function() {
library(RODBC)
channel <- odbcConnect("chris_db","","")
ausgaben <- sqlFetch(channel,"ausgaben")
plot(ausgaben$kosten,type="l")
cor(ausgaben$kosten,ausgaben$kategorie)
# str(hist(ausgaben$KATEGORIE, col="gray", labels = TRUE))
savePlot(filename= "c:/test/apache/htdocs/testplot" ,
type=("jpg"),device=dev.cur())
odbcClose(channel)}
while(1) {
query_ausgaben()
Sys.sleep(15)}

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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