[R] dev.print() bug?
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Tue Sep 19 21:59:21 CEST 2000
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list