1

当 I 时require(gWidgetstcktk),我得到一个无限循环,其中包含看似无穷无尽的错误消息,如下所示:

error reading package index file /Library/Frameworks/R.framework/Versions/2.14/Resources/library/tcltk2/tklibs/ttktheme_clearlooks/pkgIndex.tcl: can't find package tile
error reading package index file /Library/Frameworks/R.framework/Versions/2.14/Resources/library/tcltk2/tklibs/ttktheme_clearlooks/pkgIndex.tcl: too many nested evaluations (infinite loop?)

(在每次迭代中,路径都是不同的。这些消息的结尾似乎是重要的部分:can't find package tiletoo many nested evaluations (infinite loop?)

我像往常一样安装了软件包,install.package()并且引用的文件似乎存在。gWidgets似乎加载得很好。我在 OSX 10.7.4 上通过 RStudio 0.96.231 运行 R 2.14.1。这里出了什么问题?


更新:我现在看到问题出在tcltk2包上。

4

1 回答 1

1

那不应该发生。首先,我会说尝试卸载软件包然后重新安装它。过程中可能出现错误。您应该做的另一件事是在执行此操作(或)时选择“安装所有依赖项” install.packages(______, dependencies = TRUE)。您是否安装了该软件包的所有相关依赖项?也许这个库需要一个你没有的不同的库。

于 2012-07-25T14:40:35.927 回答