[R] Producing png plot in batch mode

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Jun 23 18:32:27 CEST 2006


?png explains this to you and gives alternatives.

On Fri, 23 Jun 2006, Vittorio wrote:

> I have set up an R procedure that is launched every three hours by
> crontab in a unix server. Crontab runs at regular intervals the
> following line:
> R CMD BATH myprog.R

BATCH?

> myprog.R (which by the way uses
> R2HTML) should create an updated png graph  to be referred to and seen
> in an intranet web-page index.html.
>
> The problem is that both:
>
> png
> (....)
> plot(...)
> dev.off()
>
> AND:
>
> plot(...)
> HTMLplot(...)
>
> fail when
> launched in a batch manner compalining that they need an X11() instance
> to be used (I understand that they work only in a graphic context and
> intarictively).
>
> How can I obtain that png file?
>
> Ciao
> Vittorio
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list