1

我安装了库gbm(RStudio)。当我尝试调用它时,它失败了:

library("gbm")
Loading required package: survival
Loading required package: splines
Loading required package: lattice
Loading required package: parallel
Error : .onAttach failed in attachNamespace() for 'gbm', details:
  call: formatDL(nm, txt, indent = max(nchar(nm, "w")) + 3)
  error: incorrect values of 'indent' and 'width'
In addition: Warning message:
package ‘gbm’ was built under R version 3.1.3 
Error: package or namespace load failed for ‘gbm’

应该提到的是,这个库就在一天前工作得很好。我没有对 RStudio 设置进行任何更改。

4

1 回答 1

3

这是一个奇怪的错误。看看这个线程,它报告了与mgcvR 包类似的问题;令人惊讶的是,解决方案似乎只是调整右侧的大小以增加窗口的宽度。现在尝试再次加载库(“gbm”),它应该可以工作。

于 2015-03-19T18:31:40.530 回答