From ripley@stats.ox.ac.uk  Thu Nov 22 12:26:20 2001
From: ripley@stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Thu, 22 Nov 2001 13:26:20 +0100 (MET)
Subject: [Rd] Bug in dev.print? (PR#1179)
Message-ID: <200111221226.NAA25830@pubhealth.ku.dk>

This now works in R-devel: it is the same as PR#1174 if you want to look
that up.

That you for the diagnosis: it's correct one, the bug being in the
internal clipping code, whereas postscript() clips in PostScript.


On Thu, 22 Nov 2001 dtrenkler@nts6.oec.uni-osnabrueck.de wrote:

> Dear "Debuggers",
>
> please have look a the following:
>
>
>
> > plot(0:1,0:1,type="n")
> > points(c(0,0.5,1),c(0,0.5,1))
> > dev.print(device = postscript, width=5 , height=5, file="test1.ps")
> windows
>       2
> >#  This worked
> > dev.print(device = pdf, width=5 , height=5, file="test1.pdf")
> windows
>       2
> >#  That also
> > plot(0:1,0:1,type="n" ,yaxs="i")
> > points(c(0,0.5,1),c(0,0.5,1))
> > dev.print(device = postscript, width=5 , height=5, file="test2.ps")
> windows
>       2
> >#  This worked. However:
> > dev.print(device = pdf, width=5 , height=5, file="test2.pdf")
> Error in dev.copy(device = function (file = ifelse(onefile, "Rplots.pdf",  :
>         negative length vectors are not allowed
> ># I guess the clipping of the points causes the error...
>
> Version:
>  platform = i386-pc-mingw32
>  arch = x86
>  os = Win32
>  system = x86, Win32
>  status =
>  major = 1
>  minor = 3.1
>  year = 2001
>  month = 08
>  day = 31
>  language = R
>
> Windows NT 4.0 (build 1381) Service Pack 6
>
> Search Path:
>  .GlobalEnv, package:ctest, Autoloads, package:base
>
>    --- D.Trenkler ---
>
> ****************************************************************************
> *****
>    Dr. Dietrich Trenkler        (dtrenkler@nts6.oec.uni-osnabrueck.de)
>    Statistik / Empirische Wirtschaftsforschung
>    Universitaet Osnabrueck
>    Rolandstrasse 8                                Phone: +49(0) 541-969-2753
>    D-49069 Osnabrueck                          Fax  : +49(0) 541-969-2744
>    GERMANY
> ****************************************************************************
> *****
>
>
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-devel 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-devel-request@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
Brian D. Ripley,                  ripley@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-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Bug in dev.print? (PR#1179)
ripley@stats.ox.ac.uk