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> Thanks, > Tom Joy >[[alternative HTML version deleted]]
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 devgaTry 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
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