Trying to install rattle package after several years, I faced several unexpected and weird errors. Using the latest version of R, RGtk2 package could not be installed and when back to previous versions, I got such an error for version 3.5 to 4.0:
Warning message:
package ‘rattle’ is not available (for R version 3.6.2)
I read different posts and solutions both on the SO and other places but I could not install it.
Is there any idea and tip to do so successfully?
Update
Recently in March 2022, rattle is removed from cran and new installation guide presented on its official website. I followed the instruction and tried to install rattle on the latest version of R and got the following error.
Update 2 Followed the solution by @tc90kk, the rattle and all the dependencies have been installed but RGtk2.
Error in rattle() :
The RGtk2 package is not available but is required.
Please install the package using, for example:
install.packages("RGtk2")
Trying to install RGtk2 using the latest manual on Togaware as:
install.packages("https://cran.microsoft.com/snapshot/2021-12-15/bin/windows/contrib/4.1/RGtk2_2.20.36.2.zip", repos=NULL)
this error raised:
trying URL 'https://cran.microsoft.com/snapshot/2021-12-15/bin/windows/contrib/4.1/RGtk2_2.20.36.2.zip'
Error in download.file(p, destfile, method, mode = "wb", ...) :
cannot open URL 'https://cran.microsoft.com/snapshot/2021-12-15/bin/windows/contrib/4.1/RGtk2_2.20.36.2.zip'
In addition: Warning message:
In download.file(p, destfile, method, mode = "wb", ...) :
InternetOpenUrl failed: 'The connection with the server was reset'