[R] R from outside program

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Sep 24 15:43:29 CEST 2004


Poizot Emmanuel wrote:

> Hi all,
> I'm writing a program in C++ in witch there should be some graphical outputs.
> To do so, I would like to use R with the command :
> R --no-save < cmdfile.R ,  where  I put the R graphic commands in the 
> cmdfile.R file.
> I call R from my C++ code but as R seems to run in batch mode, there are no 
> graphical outputs!
> How can I do to get the graphics outputs ?

Open a device, plot, and close the device.
See ?Device

Uwe Ligges




More information about the R-help mailing list