Skip to content
Prev 9763 / 398498 Next

Unattended printing under Windows

On Sun, 25 Feb 2001, Michael Camann wrote:

            
Well, I am none too clear on the blockage point here, but let me try some
pointers.  BTW, as far as I know everything you can do from the GUI in R
you can do equivalently from the command line (even replay plots, but that
is more cumbersome in the CLI).

win.metafile() allows you to produce graphics as a Windows metafile.  You
can either dev.copy the plot to win.printer() to print it (not sure if that
runs unattended: it may depend on your Windows settings) or use system()
to print the file or even file.copy() to copy it to PRN:

You may wish to make use of R-1.2.2 (due today) that creates metafiles that
some applications (e.g. Word) is happier with).

B