R version 4.2.1 Cannot install RGtk2 for launching gifski

Installing package into ‘C:/Users/Hermesr/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
package ‘RGtk2’ successfully unpacked and MD5 sums checked
Error in install.packages : package ‘RGtk2’ not installed because it is not built for UCRT

> sessionInfo()
R version 4.2.1 (2022-06-23 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 16299)

Matrix products: default

locale:
[1] LC_COLLATE=English_Israel.1255  LC_CTYPE=English_Israel.1255   
[3] LC_MONETARY=English_Israel.1255 LC_NUMERIC=C                   
[5] LC_TIME=English_Israel.1255    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] rattle_5.5.1 bitops_1.0-7 tibble_3.1.7

loaded via a namespace (and not attached):
 [1] rstudioapi_0.13   magrittr_2.0.3    hms_1.1.1         tidyselect_1.1.2 
 [5] munsell_0.5.0     colorspace_2.0-3  R6_2.5.1          rlang_1.0.3      
 [9] fansi_1.0.3       stringr_1.4.0     dplyr_1.0.9       tools_4.2.1      
[13] grid_4.2.1        data.table_1.14.2 gtable_0.3.0      pacman_0.5.1     
[17] utf8_1.2.2        DBI_1.1.3         cli_3.3.0         ellipsis_0.3.2   
[21] assertthat_0.2.1  lifecycle_1.0.1   crayon_1.5.1      ggeasy_0.1.3     
[25] purrr_0.3.4       ggplot2_3.3.6     vctrs_0.4.1       glue_1.6.2       
[29] qdapRegex_0.7.5   stringi_1.7.6     compiler_4.2.1    pillar_1.7.0     
[33] generics_0.1.2    scales_1.2.0      pkgconfig_2.0.3  

The binaries provided by the package author (since the package is no longer in CRAN) are not compiled for the latest R version. You can try compiling yourself from the GitHub mirror.

remotes::install_github("cran/RGtk2")

I have downloaded the file from
https://cran.microsoft.com/snapshot/2020-12-15/web/packages/RGtk2/index.html

install.packages("D:/R Packages Repository/R animations/RGtk2_2.20.36.zip", repos = NULL, type = "binary")
Installing package into ‘C:/Users/Hermesr/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
package ‘RGtk2’ successfully unpacked and MD5 sums checked
Error in install.packages : package ‘RGtk2’ not installed because it is not built for UCRT

The same situation, those are old binaries not compatible with the latest R version. As I said, try compiling yourself from source.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.