Error in cairoDevice::asCairoDevice(da) : Graphics API version mismatch

Issue #48 resolved
Former user created an issue

Hi,

I'm trying to run

rattle()

in R 4.1.

Every time a graphic should be displayed, I only get a plain grey window (with 2 or 3 buttons) and following line is printed on the terminal: "Error in cairoDevice::asCairoDevice(da) : Graphics API version mismatch"

(e.g. MVE to reproduce error: 0. Install R4.1 1. Data > load a dataset 2. Explore > Distributions > Check a few Histogram checkboxes)

I found an entry with this error on the following page (NOTE: unfortunately, I cannot refer directly to the correct entry, as there is no anchor defined in the HTML source of the page): https://rattle.togaware.com/rattle-install-troubleshooting.html

In summary, it proposes to reinstall R::cairoDevice and apt::libgtk2.0-dev.

I've done both several times, and error is still there.

Any solution would be welcomed.

Comments (2)

  1. Graham Williams repo owner

    Thanks for the report. I was able to replicate.

    A work around is to disable “Use Cairo Graphics Device” in the Settings menu.

    However, on Ubuntu, this also worked for me:

    $ wajig install libgtk2.0-dev

    \$ R

    install.packages(“cairoDevice”, type=”source”)

    Then restart R and repeat the plot - it worked.

  2. Log in to comment