Rcmndr插件没有运行

时间:2015-12-29 18:42:47

标签: r r-commander

我正在尝试为我的课程运行此rcmndr插件,但它无效。我安装了所有必需的软件包,它似乎安装正确,但我得到此软件包或命名空间加载失败。当我输入库命令时,GUI会暂时出现,然后随着错误消失。它似乎是命名空间和.onattach的一个问题,但我无法找到任何现有的答案或资源来解决这个问题。

https://cran.r-project.org/web/packages/RcmdrPlugin.BCA/index.html

> library(RcmdrPlugin.BCA)
Loading required package: Rcmdr
Loading required package: splines
Loading required package: RcmdrMisc
Loading required package: car
Loading required package: sandwich
Rcmdr Version 2.2-3
Loading required package: BCA
Warning: package 'BCA' was built under R version 3.2.3
Loading required package: flexclust
Warning: package 'flexclust' was built under R version 3.2.3
Loading required package: grid
Loading required package: lattice
Loading required package: modeltools
Loading required package: stats4
Error : .onAttach failed in attachNamespace() for 'RcmdrPlugin.BCA', details:
  call: get(Menus[m, 5])
  error: object 'importRODBCtable' not found

In addition: Warning messages:
1: package ‘RcmdrPlugin.BCA’ was built under R version 3.2.3 
2: package ‘Rcmdr’ was built under R version 3.2.3 
3: package ‘RcmdrMisc’ was built under R version 3.2.3 
4: package ‘car’ was built under R version 3.2.3 

Error: package or namespace load failed for 'RcmdrPlugin.BCA'

2 个答案:

答案 0 :(得分:1)

我可以选择在R指挥官中运行此插件。 使用以下命令打开R Commander:

library(Rcmdr)

将出现R Commander对话框。 在R Script中加载BCA库 -

lapply(list('BCA', 'splines', 'RcmdrMisc', 'car', 'sandwich', 'flexclust', 'grid','lattice','modeltools','stats4','RODBC'), require, character.only = TRUE)

单击“提交”按钮。 如果您没有RODBC软件包(在我的情况下不存在),请单独安装,然后运行上面的命令。要安装使用:

install.packages("RODBC")

现在你完全拥有加载RcmdrPlugin.BCA库后会得到的东西。

答案 1 :(得分:1)

我遇到了类似的情况。尝试了很多东西 - 没有用 - 我终于卸载了R并删除了" Program Files" Windows中的目录。然后我重新安装了R和RcmdrPlugin.BCA,这次它起作用了。

您也可以参考此网址获取帮助http://r.789695.n4.nabble.com/Unable-to-run-RcmdrPlugin-survival-using-3-2-2-with-Windows-10-td4711796.html