Both help(dev.print) and the "R for windows FAQ" suggest that dev.print() with no arguments should work also on Windows [Our students have to use Windows, I don't fortunately ...] > dev.print() Error in PS(file, old$paper, old$family, old$encoding, old$bg, old$fg, : unable to start device PostScript In addition: Warning message: printing via file = "" is not implemented in this version > One explanation of the problem is that getOption("printcmd") is NULL and frankly I wouldn't know what to put there (Win NT 4, or Win 2k). Of course all this not a big problem, since at least in RGui, there's the print button that probably everyone uses. OTOH, it would be nice if dev.print() was portable and would work on all platforms (as advertized). Confirmations, suggestions, opinions ? Martin Maechler <maechler at stat.math.ethz.ch> http://stat.ethz.ch/~maechler/ Seminar fuer Statistik, ETH-Zentrum LEO D10 Leonhardstr. 27 ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND phone: x-41-1-632-3408 fax: ...-1228 <>< -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Thu, 18 Oct 2001, Martin Maechler wrote:> Both help(dev.print) and the "R for windows FAQ" > suggest that dev.print() with no arguments > should work also on WindowsI think you are reading dev.print() to mean no arguments, whereas it is conventionally used to denote the function. ?dev.print needs to say `if properly set up: see postscript'. Probably dev.print should default to win.printer on Windows, but that would be both a cross-platform- and back-compatibility change.> [Our students have to use Windows, I don't fortunately ...] > > > > dev.print() > Error in PS(file, old$paper, old$family, old$encoding, old$bg, old$fg, : > unable to start device PostScript > In addition: Warning message: > printing via file = "" is not implemented in this version > > > > One explanation of the problem is that > getOption("printcmd") > is NULL and frankly I wouldn't know what to put there (Win NT 4, or Win 2k).See ?postscript on a Windows version of R.> Of course all this not a big problem, since at least in RGui, there's the > print button that probably everyone uses. > OTOH, it would be nice if dev.print() was portable and would work on all > platforms (as advertized).Well, it does if you have a print spooler set, and that applies equally under Unix. -- 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 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Martin Maechler wrote:> > Both help(dev.print) and the "R for windows FAQ" > suggest that dev.print() with no arguments > should work also on Windows > [Our students have to use Windows, I don't fortunately ...] > > > dev.print() > Error in PS(file, old$paper, old$family, old$encoding, old$bg, old$fg, : > unable to start device PostScript > In addition: Warning message: > printing via file = "" is not implemented in this version > > > > One explanation of the problem is that > getOption("printcmd") > is NULL and frankly I wouldn't know what to put there (Win NT 4, or Win 2k). > > Of course all this not a big problem, since at least in RGui, there's the > print button that probably everyone uses. > OTOH, it would be nice if dev.print() was portable and would work on all > platforms (as advertized). > > Confirmations, suggestions, opinions ?win.print() opens the windows printing dialog. Most R users probably have installed ghostscript and GhostView, but it is not a standard under Windows. So porting the unix like printing to Windows (via postscript) is tricky. Particularly the windows printer driver system differs from unix and you cannot print a postscript file without ghostscript (or similar software) on a non-postscript (or even worse GDI) printer. Uwe Ligges -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._