[R] help with win.print

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Jun 23 19:04:04 CEST 2004


Prof Brian Ripley wrote:

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

I think it is only possible to specify names that are knwon by Windows 
to be installed printers.
Hence after installing the printer and calling it, e.g., LBMARK4200 on 
your system, you can say "printer = "LBMARK4200"

Uwe Ligges




More information about the R-help mailing list