当前位置:网站首页>Warning in install. packages : package ‘RGtk2’ is not available for this version of R
Warning in install. packages : package ‘RGtk2’ is not available for this version of R
2022-07-06 08:40:00 【Data+Science+Insight】
Warning in install.packages : package ‘RGtk2’ is not available for this version of R、install.packages("RGtk2")
Catalog
problem :
start-up rattle Data mining error :
> library(rattle)
> rattle()
Error in rattle() :
The RGtk2 package is not available but is required.
Please install the package using, for example:
install.packages("RGtk2")
then , Follow the instructions install.packages("RGtk2")
say CRAN There is no such bag ,,,
solve :
Search for , Be able to use search engines

# Find out where the historical version is .

# There are many versions to choose by yourself , Then download

Use Rstudio Medium tools Medium install pcakage Manually install local packages

# Then the following error occurs ;
# Probably because Rtools The problem of ,
I really didn't find make So I can't install .
> Sys.which("make")
make
""
> pkgbuild::find_rtools(debug = TRUE)
Found in Rtools 4.0 installation folder
[1] TRUE
> install.packages("D:/Downloads/RGtk2_2.20.36.3.tar.gz", repos = NULL, type = "source")
* installing *source* package 'RGtk2' ...
** Will succeed 'RGtk2' Package unpacking and MD5 And inspection
** using staged installation
** libs
*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'RGtk2'
* removing 'D:/R/R-4.0.5/library/RGtk2'
Warning in install.packages :
installation of package ‘D:/Downloads/RGtk2_2.20.36.3.tar.gz’ had non-zero exit status

#R Version and Rtools Need to match

install Rtools

# Do the following ( Remember if there is no response after the operation , Need to restart Rstudio)
writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = "~/.Renviron")
> Sys.which("make")
make
"D:\\Rtools\\rtools40\\usr\\bin\\make.exe"
>
> pkgbuild::find_rtools(debug = TRUE)
Found in Rtools 4.0 installation folder
[1] TRUE
# Then there are the following problems :
> install.packages("D:/Downloads/RGtk2_2.20.36.3.tar.gz", repos = NULL, type = "source")
* installing *source* package 'RGtk2' ...
** Will succeed 'RGtk2' Package unpacking and MD5 And inspection
** using staged installation
** libs
*** arch - i386
"D:/Rtools/rtools40/mingw32/bin/"gcc -I"D:/R/R-40~1.5/include" -DNDEBUG -D_R_=1 -DUSE_R=1 -mms-bitfields -I/include/gtk-2.0 -I/lib/gtk-2.0/include -I/include/atk-1.0 -I/include/cairo -I/include/pango-1.0 -I/include/glib-2.0 -I/lib/glib-2.0/include -I/include/libxml2 -I/include/gdk-pixbuf-2.0 -I/include -I. -DR_LEGACY_S_DEFS=1 -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c RGtkDataFrame.c -o RGtkDataFrame.o
In file included from ./RGtk2/atk.h:4,
from RGtk2/gtk.h:4,
from RGtkDataFrame.h:1,
from RGtkDataFrame.c:1:
./RGtk2/gobject.h:7:10: fatal error: glib.h: No such file or directory
#include <glib.h>
^~~~~~~~
compilation terminated.
make: *** [D:/R/R-40~1.5/etc/i386/Makeconf:222: RGtkDataFrame.o] Error 1
ERROR: compilation failed for package 'RGtk2'
* removing 'D:/R/R-4.0.5/library/RGtk2'
Warning in install.packages :
installation of package ‘D:/Downloads/RGtk2_2.20.36.3.tar.gz’ had non-zero exit status
here glib.h Dependence is need windows Basic documents provided by the system . Refer to the following links for processing .
./RGtk2/gobject.h:7:10: fatal error: glib.h: No such file or directory
Reference resources :RGtk2 installation fails on Windows 11 - General - RStudio Community
Reference resources :The GTK Project - A free and open-source cross-platform widget toolkit

Complete error :
> library(rattle)
> rattle()
Error in rattle() :
The RGtk2 package is not available but is required.
Please install the package using, for example:
install.packages("RGtk2")
> install.packages("RGtk2")
Warning in install.packages :
package ‘RGtk2’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Reference resources :R
Reference resources :Index of /src/contrib/Archive/RGtk2
边栏推荐
- China dihydrolaurenol market forecast and investment strategy report (2022 Edition)
- ROS编译 调用第三方动态库(xxx.so)
- Image, CV2 read the conversion and size resize change of numpy array of pictures
- sublime text的编写程序时的Tab和空格缩进问题
- 有效提高软件产品质量,就找第三方软件测评机构
- Introduction to the differences between compiler options of GCC dynamic library FPIC and FPIC
- Charging interface docking tutorial of enterprise and micro service provider platform
- 【MySQL】日志
- China high purity silver nitrate Market Research and investment strategy report (2022 Edition)
- torch建立的网络模型使用torchviz显示
猜你喜欢

tree树的精准查询

Leetcode question brushing (5.28) hash table

深度剖析C语言指针

Image,cv2读取图片的numpy数组的转换和尺寸resize变化

JVM performance tuning and practical basic theory - Part 1

生成器参数传入参数

Hungry for 4 years + Ali for 2 years: some conclusions and Thoughts on the road of research and development

ROS compilation calls the third-party dynamic library (xxx.so)

电脑清理,删除的系统文件

软件卸载时遇到trying to use is on a network resource that is unavailable
随机推荐
torch建立的网络模型使用torchviz显示
FairGuard游戏加固:游戏出海热潮下,游戏安全面临新挑战
Research Report on Market Research and investment strategy of microcrystalline graphite materials in China (2022 Edition)
Detailed explanation of heap sorting
Research and investment forecast report of citronellol industry in China (2022 Edition)
C语言双指针——经典题型
pytorch训练好的模型在加载和保存过程中的问题
2. File operation - write
China dihydrolaurenol market forecast and investment strategy report (2022 Edition)
PLT in Matplotlib tight_ layout()
Deep learning: derivation of shallow neural networks and deep neural networks
VMware 虚拟化集群
Beijing invitation media
@JsonBackReference和@JsonManagedReference(解决对象中存在双向引用导致的无限递归)
Colorlog结合logging打印有颜色的日志
Unified ordering background interface product description Chinese garbled
sublime text没关闭其他运行就使用CTRL+b运行另外的程序问题
Chrome浏览器的crash问题
POI add write excel file
hutool优雅解析URL链接并获取参数