作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
第一次尝试运行 Fantasyrpartplot 并遇到错误。
> fancyRpartPlot(rpart.sub1)
Error in loadNamespace(name) : there is no package called ‘rpart.plot’
> remove.packages("RGtk2")
Removing package from ‘C:/Program Files/R/R-3.1.0/library’
(as ‘lib’ is unspecified)
> remove.packages("rattle")
Removing package from ‘C:/Program Files/R/R-3.1.0/library’
(as ‘lib’ is unspecified)
Restarting R session...
> install.packages("rattle")
also installing the dependency ‘RGtk2’
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/RGtk2_2.20.31.zip'
Content type 'application/zip' length 13914471 bytes (13.3 Mb)
opened URL
downloaded 13.3 Mb
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/rattle_4.0.0.zip'
Content type 'application/zip' length 3728887 bytes (3.6 Mb)
opened URL
downloaded 3.6 Mb
package ‘RGtk2’ successfully unpacked and MD5 sums checked
package ‘rattle’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\xxx\AppData\Local\Temp\RtmpsLxgOv\downloaded_packages
> require(RGtk2)
Loading required package: RGtk2
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Program Files/R/R-3.1.0/library/RGtk2/libs/x64/RGtk2.dll':
LoadLibrary failure: The specified module could not be found.
In addition: Warning message:
package ‘RGtk2’ was built under R version 3.1.3
trying URL 'http://ftp.gnome.org/pub/gnome/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip'
Content type 'application/zip' length 25830230 bytes (24.6 Mb)
opened URL
downloaded 24.6 Mb
Learn more about GTK+ at http://www.gtk.org
If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable
IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN
Warning messages:
1: Failed to load RGtk2 dynamic library, attempting to install it.
2: In dir.create(config_path, recursive = TRUE) :
'C:\Program Files\R\R-3.1.0\library\RGtk2\gtk\x64\etc\gtk-2.0' already exists
> require(rattle)
Loading required package: rattle
Rattle: A free graphical interface for data mining with R.
Version 4.0.0 Copyright (c) 2006-2015 Togaware Pty Ltd.
Type 'rattle()' to shake, rattle, and roll your data.
Warning message:
package ‘rattle’ was built under R version 3.1.3
> fancyRpartPlot(rpart.sub1)
Error in loadNamespace(name) : there is no package called ‘rpart.plot’
C:/Program Files/R/R-3.1.0/library/RGtk2/libs/x64/RGtk2.dll
实际上在那里,我已经手动检查过。
rattle()
,可能应该添加拨浪鼓似乎加载正确。
最佳答案
每个@phiver rpart.plot 丢失
关于r 拨浪鼓fancyrpartplot 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33795188/
我是一名优秀的程序员,十分优秀!