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

8k Views Asked by At

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~

3

There are 3 best solutions below

0
On

My solution is going back with R-4.1.0

Steps:

1
On

Install RGtk2: https://rattle.togaware.com/

from above link, shows the following error

install.packages("https://access.togaware.com/RGtk2_2.20.36.2.tar.gz", repos=NULL)

#> installation of package ‘C:/Users/sales.co/AppData/Local/Temp/RtmpGmK8Uq/downloaded_packages/RGtk2_2.20.36.2.tar.gz’ had non-zero exit status

1
On

Graham has been testing and rewriting some of the instructions. https://rattle.togaware.com/ has a new instructions to install and run on a previous R version. There is also a Rattle 5.5.2 out a day ago, with some fixes.

Regards Tony