[R] SavePlot in the Batch mode
Douglas Bates
bates at stat.wisc.edu
Tue Oct 30 02:28:23 CET 2007
On 10/29/07, Shubha Vishwanath Karanth <shubhak at ambaresearch.com> wrote:
> Hi R,
> Does 'savePlot' will not work in the batch mode? I get the below error:
Yes. As the error message says you can only copy from the Windows
device with savePlot. However, you can directly create pdf (see ?pdf)
or PostScript (see ?postscript) graphics output in batch mode.
> > x=c(1,2,3,4,5,6,7)
> > hist(x)
> > savePlot("D:\\Test\\histo",type="jpeg")
> Error in savePlot("D:\\Test\\histo", type = "jpeg") :
> can only copy from 'windows' devices
> Execution halted
More information about the R-help
mailing list