[R] Cairo device won't output the PNG
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Feb 15 22:51:21 CET 2011
Packages like Cairo have very little to do with R and everything to do
with the external software (here cairographics), and so do work quite
differently on Ubuntu and Windows (and with lots of font problems on
Windows).
But this example works for me in that exact setup.
On Tue, 15 Feb 2011, Ben Bolker wrote:
> Ash Pol <cruul2 <at> live.com> writes:
>
>>
>>
>> Hi All,
>> I have been experiencing a strange issue ever since I upgraded my R and the
> packages. I cannot plot anything
>> to the CairoPNG device.For an example:
>
> Cairo(600, 600, file="plot.png", type="png", bg="white")
> plot(1:10)
> dev.off()
>
> will create an empty plot.png file. I am running R 2.12.1 (32bit) on Windows 7
> (64bit).
>> -----------------------------
>
>> sessionInfo()
> R version 2.12.1 (2010-12-16)Platform:
>> i386-pc-mingw32/i386 (32-bit)
>> locale:[1] LC_COLLATE=English_United States.1252
> [snip]
>
> attached base packages:[1] grDevices datasets splines
> graphics stats tcltk utils methods base
> other attached packages:[1] Cairo_1.4-6 svSocket_0.9-51
> TinnR_1.0.3 R2HTML_2.2 Hmisc_3.8-3
> survival_2.36-2 rcom_2.2-3.1 rscproxy_1.3-1
> loaded via a namespace (and not attached):
> [1] cluster_1.13.2 grid_2.12.1 lattice_0.19-17
> svMisc_0.9-61 tools_2.12.1
>
> Works for me (Ubuntu 10.04
> [Platform: i486-pc-linux-gnu (32-bit) ],
> R 2.12.1/Cairo 1.4-6
>
> May I suggest:
>
> (1) try running with R --vanilla to minimize any other packages
> getting loaded/possibility of weird conflicts (unlikely but worth
> ruling out)
> (2) contact the package maintainer
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Brian D. Ripley, ripley at 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 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list