dev.print() seems to get confused when the graphics window is resized as in the following: > plot(1,1) > dev.print() X11 2 > #--- resize graphics device window with mouse--- > dev.print() Error in dev.print() : Object "hp" not found Vital statistics: R : Copyright 2000, The R Development Core Team Version 1.1.1 (August 15, 2000) Linux Red Hat 6.1 I don't recall anything about this behavior in the recent chatter about dev.print(), and I didn't find it in the help archives. Has this been reported before?... and does anyone know of a work-around (besides keeping my hand off the mouse)? Thanks, Pierre -- ----------------------------------------------------------------- Pierre Kleiber Email: pkleiber at honlab.nmfs.hawaii.edu Fishery Biologist Tel: 808 983-5399/737-7544 NOAA FISHERIES - Honolulu Laboratory Fax: 808 983-2902 2570 Dole St., Honolulu, HI 96822-2396 ----------------------------------------------------------------- "God could have told Moses about galaxies and mitochondria and all. But behold... It was good enough for government work." ----------------------------------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Pierre Kleiber <pkleiber at honlab.nmfs.hawaii.edu> writes:> dev.print() seems to get confused when the graphics window is > resized as in the following: > > > plot(1,1) > > dev.print() > X11 > 2 > > #--- resize graphics device window with mouse--- > > dev.print() > Error in dev.print() : Object "hp" not found > > Vital statistics: > R : Copyright 2000, The R Development Core Team > Version 1.1.1 (August 15, 2000) > Linux Red Hat 6.1 > > I don't recall anything about this behavior in the recent chatter > about dev.print(), and I didn't find it in the help archives. > Has this been reported before?... and does anyone know of a > work-around (besides keeping my hand off the mouse)?Hmm. Doesn't happen to me, but it would seem that hp in dev.print can become unset if papersize=="letter". I think you may need a clause like if (paper == "letter") { wp <- 8 hp <- 11 - 0.5 } (The code in dev.print look like it could use a going over. There's also a mysterious "horizontal" variable that seemingly gets set but never used? The development version fixes a long-standing bug where a4 and legal were switched, but the other problems seem to be there still.) -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 Tue, 19 Sep 2000, Pierre Kleiber wrote:> dev.print() seems to get confused when the graphics window is > resized as in the following: > > > plot(1,1) > > dev.print() > X11 > 2 > > #--- resize graphics device window with mouse--- > > dev.print() > Error in dev.print() : Object "hp" not found > > Vital statistics: > R : Copyright 2000, The R Development Core Team > Version 1.1.1 (August 15, 2000) > Linux Red Hat 6.1 > > I don't recall anything about this behavior in the recent chatter > about dev.print(), and I didn't find it in the help archives. > Has this been reported before?... and does anyone know of a > work-around (besides keeping my hand off the mouse)?In dev.print replace the line wh <- 10 by hp <- 10 It's a thinko .... -- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._