[R] help with win.print

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jun 23 18:56:19 CEST 2004


Do remember that you need to double backslashes in R strings ... see the 
rw-FAQ.  As I recall forward slashes work here too.

On Wed, 23 Jun 2004, Joy, Tom wrote:

> I am trying to batch the printing of some graphs using win.print when I leave the printer option blank it prompts me for a printer each time and then works fine when I put the printer name in however using the following code I get the error below. Does the printer need to be locally installed or can it print to a network printer like I am trying to?
> 
> win.print(width=8, height=10.5,printer="\\LBPS\LBMARK_4200")
>  
> Error in devga(paste("win.print:", printer, sep = ""), width, height,  : 
>         unable to start device devga

Try printer="\\\\LBPS\\LBMARK_4200"

-- 
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