Error in cairoDevice::asCairoDevice(da) : Graphics API version mismatch
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)
-
repo owner -
repo owner - changed status to resolved
Plotting with CairoDevice is functional if cairoDevice is rebuilt on your new platform.
- Log in to comment
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:
Then restart R and repeat the plot - it worked.