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

Tom Gottfried tomgottfried at web.de
Tue Mar 1 22:46:46 CET 2011


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



More information about the R-SIG-Debian mailing list