'Error in install.packages : package ‘RGtk2’ not installed because it is not built for UCRT

I tried to install rattle and RGtk2. I used

install.packages("https://cran.microsoft.com/snapshot/2021-12-15/bin/windows/contrib/4.1/RGtk2_2.20.36.2.zip", repos=NULL) to install RGtk2. 

Then I received an error message saying

Error in install.packages : package ‘RGtk2’ not installed because it is not built for UCRT

I wonder how can I solve this problem? Thanks~

r


Solution 1:[1]

My solution is going back with R-4.1.0

Steps:

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 General Grievance