[R-sig-Debian] can't open Cairo device

Prof. John C Nash nashjc at uottawa.ca
Tue Mar 1 22:57:21 CET 2011


Since I've been wanting to try out cairo for a while I tried it out.
On Ubuntu Lucid (10.04.1) I just did

sudo R
> install.packages("cairoDevice")
> q()
R
> library(cairoDevice)
> Cairo()
> hist(runif(100))
> q()

and all worked as expected. So maybe a particular setup under Debian is indeed the problem.

JN


On 03/01/2011 04:46 PM, Tom Gottfried wrote:
> Dear list,
> 
> in R under wheezy the following error occurs:
> 
>> library(cairoDevice)
>> Cairo()
> Error in Cairo() : Graphics API version mismatch
> 
> It seems to be Debian-specific, as I tried the same under OpenSUSE 11.3 and it worked.
> 
> I tried installing cairoDevice via `apt-get install r-cran-cairodevice' and with
> `install.packages("cairoDevice")' in R (without any difference).
> 
> See below for my sessionInfo() from Debian wheezy and following from OpenSUSE. Might it be
> the "Patched" in the version string from OpenSUSE that makes the difference?
> 
> Thanks in advance!
> Tom
> 
> Debian:
> R version 2.12.1 (2010-12-16)
> Platform: x86_64-pc-linux-gnu (64-bit)
> 
> locale:
> [1] C
> 
> attached base packages:
> [1] grid      stats     graphics  grDevices utils     datasets  methods
> [8] base
> 
> other attached packages:
> [1] playwith_0.9-53      gWidgetsRGtk2_0.0-72 gWidgets_0.0-43
> [4] lattice_0.19-17      cairoDevice_2.14
> 
> loaded via a namespace (and not attached):
> [1] RGtk2_2.20.8   gridBase_0.4-3 tools_2.12.1
> Warning message:
> 'DESCRIPTION' file has 'Encoding' field and re-encoding is not possible
> 
> OpenSUSE:
> R version 2.12.1 Patched (2011-02-10 r54330)
> Platform: x86_64-unknown-linux-gnu (64-bit)
> 
> locale:
>  [1] LC_CTYPE=de_DE.UTF-8       LC_NUMERIC=C
>  [3] LC_TIME=de_DE.UTF-8        LC_COLLATE=de_DE.UTF-8
>  [5] LC_MONETARY=C              LC_MESSAGES=de_DE.UTF-8
>  [7] LC_PAPER=de_DE.UTF-8       LC_NAME=C
>  [9] LC_ADDRESS=C               LC_TELEPHONE=C
> [11] LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C
> 
> attached base packages:
> [1] grid      stats     graphics  grDevices utils     methods   base
> 
> other attached packages:
> [1] playwith_0.9-53      gWidgetsRGtk2_0.0-72 gWidgets_0.0-43
> [4] cairoDevice_2.14     lattice_0.19-13      RODBC_1.3-2
> 
> loaded via a namespace (and not attached):
> [1] gridBase_0.4-3 RGtk2_2.20.8   tools_2.12.1
> 
> _______________________________________________
> R-SIG-Debian mailing list
> R-SIG-Debian at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-debian



More information about the R-SIG-Debian mailing list