Graphics API version mismatch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rkward (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Trying to plot in RKWard results in:
Error in (function (width = getOption(
Graphics API version mismatch
Error in RK() : Graphics API version mismatch
Error in RK() : Graphics API version mismatch
Outside of RKWard and using plain R this error does not appear and the plot is shown.
I have used R packages from the stock Ubuntu repositories only. I have not installed anything with install.packages().
To reproduce:
Install Tidyverse:
sudo apt install r-cran-tidyverse
Run the following R code in the R Console in RKWard:
library(
ggplot(data=mpg)+ geom_point(mapping = aes(x = displ, y = hwy))
The same code runs fine from just running R from the terminal.
From what I can gather, the solution is to rebuild against the current version of R. Although it's not entirely clear what needs to be rebuild.
System info:
$ lsb_release -rd
Description: Ubuntu 22.04.2 LTS
Release: 22.04
$ apt-cache policy rkward
rkward:
Installed: 0.7.2-1
Candidate: 0.7.2-1
Version table:
*** 0.7.2-1 500
500 http://
100 /var/lib/
$ apt-cache policy r-base
r-base:
Installed: (none)
Candidate: 4.1.2-1ubuntu2
Version table:
4.1.2-1ubuntu2 500
500 http://
500 http://
$ apt-cache policy r-cran-tidyverse
r-cran-tidyverse:
Installed: 1.3.1-1
Candidate: 1.3.1-1
Version table:
*** 1.3.1-1 500
500 http://
500 http://
100 /var/lib/
FFIW, i can't replicate the issue with (k)buntu 22.04.2 LTS and RKWard 0.7.5 from the official PPA. i would assume the underlying problem was already addressed in RKWard > 0.7.2.
you might like to try the PPA that fits your setup (ubuntu or CRAN R, backports or not, stable release or bleeding edge daily snapshots...): https:/ /launchpad. net/~rkward- devel