Bug 454723

Summary: RKWard native device fails: R Graphics Engine version has changed
Product: [Applications] rkward Reporter: Jan <yzle>
Component: User InterfaceAssignee: RKWard Team <rkward-devel>
Status: RESOLVED FIXED    
Severity: minor CC: bugs.kde.org, thomas.friedrichsmeier
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Jan 2022-06-02 06:30:59 UTC
SUMMARY
Plotting with RKWard native device fails with R version 4.2.0.

STEPS TO REPRODUCE
- Settings
- Configure RKWard...
- Onscreen Graphics
- Default graphics device
- RKWard native device
- Integration of R standard devices
- Replace with RKWard device
- OK

- new script file
- plot(NULL)
- Run all

OBSERVED RESULT
A dialog appears.
Title: Graphics version mismatch
Content:
R Graphics Engine version has changed (from 12 to 15).
This change requires a recompilation.
Additional information

EXPECTED RESULT
A plot window.

SOFTWARE/OS VERSIONS
R version 4.2.0 (2022-04-22)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.4 LTS

rkward_0.7.4

ADDITIONAL INFORMATION
Updating Graphics Devices for R 4.2.0: https://developer.r-project.org/Blog/public/2021/12/14/updating-graphics-devices-for-r-4.2.0/
Comment 1 m.eik michalke 2022-06-02 13:23:44 UTC
how did you install RKWard? if you are combining CRAN versions of R with older versions of ubuntu, you must install a version of RKWard that was copiled for your particular R version.

to make this easier, we are offering this PPA repository: https://launchpad.net/~rkward-devel/+archive/ubuntu/rkward-stable-cran
Comment 2 Jan 2022-06-03 10:21:25 UTC
These are my entries for apt:

/etc/apt/sources.list:
deb https://ftp.fau.de/cran/bin/linux/ubuntu/ focal-cran40/

/etc/apt/sources.list.d/rkward-devel-ubuntu-rkward-stable-focal.list:
deb http://ppa.launchpad.net/rkward-devel/rkward-stable/ubuntu focal main
Comment 3 Thomas Friedrichsmeier 2022-06-03 11:10:05 UTC
> deb http://ppa.launchpad.net/rkward-devel/rkward-stable/ubuntu focal main

As Meik has pointed out, you will need http://ppa.launchpad.net/rkward-devel/rkward-stable-cran/ubuntu, instead, since you are using the "CRAN version" of R, rather than the one that comes with 20.04, by default.

It is true that the packages in our PPAs are currently missing dependency information that would have prevented you from installing this combination.
Comment 4 Jan 2022-06-03 11:28:24 UTC
There was a small difference in the names of the PPAs: rkward-stable vs. rkward-stable-cran
I did not see that.
Thank you very much, now it works.