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
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
On 1 March 2011 at 22:46, Tom Gottfried wrote: | Dear list, | | in R under wheezy the following error occurs: | | > library(cairoDevice) | > Cairo() | Error in Cairo() : Graphics API version mismatch Odd. Maybe it needs a rebuild? Confirmed on Ubuntu 10.10. R> library(cairoDevice) R> Cairo() Error in Cairo() : Graphics API version mismatch R> | 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? No, it won't be as that is the R version. We may need to rebuild the package. The changelog says we updated to 2.14-1 in October. The Build-Depends are libgtk2.0-dev libcairo2-dev Can you make sure you have current ones and the try the local 'R CMD INSTALL cairoDevice_2.14.tar.gz' (or via install.packages(...) if you prefer) and see what that does? Dirk | | 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 -- Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com