From lupi at unimol.it  Sun Nov 11 18:50:05 2007
From: lupi at unimol.it (lupi at unimol.it)
Date: Sun, 11 Nov 2007 18:50:05 +0100 (CET)
Subject: [Rd] savePlot bug in R 2.6.0? (PR#10420)
Message-ID: <20071111175005.2F723282EFF7@mail.pubhealth.ku.dk>

Full_Name: Claudio Lupi
Version: 2.6.0
OS: Windows XP
Submission from: (NULL) (85.18.14.35)


Try the following:

xy <- matrix(rnorm(20),10,2)
plot(xy)
savePlot("c:/xy", type="pdf")
savePlot("c:/xy", type="eps")

This used to work fine with previous R versions. Instead, with R 2.6.0 I get:

> xy <- matrix(rnorm(20),10,2)
> plot(xy)
> savePlot("c:/xy", type="pdf")
Error in savePlot("c:/xy", type = "pdf") : Invalid font type
In addition: Warning messages:
1: In savePlot("c:/xy", type = "pdf") :
  font family not found in PostScript font database
2: In savePlot("c:/xy", type = "pdf") :
  font family not found in PostScript font database
> savePlot("c:/xy", type="eps")
Error in savePlot("c:/xy", type = "eps") : Invalid font type
In addition: Warning messages:
1: In savePlot("c:/xy", type = "eps") :
  font family not found in PostScript font database
2: In savePlot("c:/xy", type = "eps") :
  font family not found in PostScript font database
> 

savePlot works fine with type = "bmp".



[Rd] savePlot bug in R 2.6.0? (PR#10420)
lupi at unimol.it