[Rd] png cairo device problems on Mac 10.6.8

From: Steven McKinney <smckinney_at_bccrc.ca>
Date: Wed, 18 Jan 2012 14:22:28 -0800

Hi all,

I have been having problems generating png files on a Mac running OS X 10.6.8.

Here's a simple example

> png("foo.png", type = "cairo"); plot(1:10); dev.off();
null device

          1
libpng warning: Application built with libpng-1.2.26 but running with 1.5.2

The resultant file is of size 0 Kb.

Is this the proper place to report this issue? Or should this be reported to r-sig-mac?

If I run

> png("foo.png"); plot(1:10); dev.off();
null device

          1

I get a 16 Kb file with the appropriate plot. (Odd, since the default type is "cairo".)

Whenever I see the libpng warning, I end up with a 0 Kb file.

Details of R session below.

Regards

Steve McKinney

R version 2.14.1 Patched (2012-01-11 r58090) Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.

[R.app GUI 1.44 (5997) x86_64-apple-darwin9.8.0]

[History restored from /Users/stevenmckinney/.Rhistory]

> png("foo.png"); plot(1:10); dev.off();
null device

          1
> png("foo.png", type = "cairo"); plot(1:10); dev.off();
null device

          1
libpng warning: Application built with libpng-1.2.26 but running with 1.5.2
> ?png

starting httpd help server ... done
> capabilities()

    jpeg      png     tiff    tcltk      X11     aqua http/ftp  sockets   libxml     fifo 
    TRUE     TRUE     TRUE     TRUE     TRUE     TRUE     TRUE     TRUE     TRUE     TRUE 
  cledit    iconv      NLS  profmem    cairo 
    TRUE     TRUE     TRUE     TRUE     TRUE 

> png("foo.png"); plot(1:10); dev.off();
null device

          1
> sessionInfo()

R version 2.14.1 Patched (2012-01-11 r58090) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached): [1] tools_2.14.1
>

Steven McKinney, Ph.D.

Statistician
Molecular Oncology and Breast Cancer Program British Columbia Cancer Research Centre

email: smckinney +at+ bccrc +dot+ ca

tel: 604-675-8000 x7561

BCCRC
Molecular Oncology
675 West 10th Ave, Floor 4
Vancouver B.C.
V5Z 1L3
Canada



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 18 Jan 2012 - 22:24:49 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 18 Jan 2012 - 23:40:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive