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