[R-SIG-Mac] Bug Report

Richard Martin radiosity at gmail.com
Wed Feb 13 13:40:01 CET 2008


Good Morning,

I believe I have found a bug within R.app. It's a problem with
quartz.save() which _seems_ to manifest itself when using par(mfcol)
to create multi-window graphs (and hence affects topology plots etc).

I have created a script which will repeat the bug _most_ of the time.

for(i in 1:5) {

quartz()
par(mfcol=c(2,2))
plot(1:10, type="b")
plot(1:10, type="b")
plot(1:10, type="b")
plot(1:10, type="b")
quartz.save(paste(i, ".pdf"), type="pdf")

}

EXPECTED OUTCOME: 5 files, named 1.pdf to 5.pdf, containing 4 graphs.
Each pdf should be identical.
ACTUAL OUTCOME: The pdf files are most often not equal. Sometimes
individual plots are left off the graphs (such that 1.pdf contains
only 2 or 3 plots, for example). More seriously, in some instances
console text is superimposed in a translated manner over the graphs
themselves. This can be seen in the attached pdf.

R version information follows:

> R.Version()
$platform
[1] "i386-apple-darwin8.10.1"

$arch
[1] "i386"

$os
[1] "darwin8.10.1"

$system
[1] "i386, darwin8.10.1"

$status
[1] ""

$major
[1] "2"

$minor
[1] "6.2"

$year
[1] "2008"

$month
[1] "02"

$day
[1] "08"

$`svn rev`
[1] "44383"

$language
[1] "R"

$version.string
[1] "R version 2.6.2 (2008-02-08)"

R.app version information:
R 2.6.2 GUI 1.23 (4932) (4932)

Mac Information:
Version 10.5.2, build 9C31

If you have any idea how to work around this bug, I'd be most
greatful. If you need any more information or I can help in any way,
please email.

Kind Regards,

Richard Martin
Research Officer,
University of Essex,
Colchester,
Essex,
CO4 3SQ


-- 
Contendere, Explorare, Invenire, et non Cedere
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2 .pdf
Type: application/pdf
Size: 97142 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20080213/d581a98c/attachment-0001.pdf 


More information about the R-SIG-Mac mailing list