尝试在 RStudio 中加载包“TSA”时出现此错误:
Loading required package: leaps
Loading required package: locfit
locfit 1.5-9.1 2013-03-22
Loading required package: mgcv
Loading required package: nlme
Error : .onAttach failed in attachNamespace() for 'mgcv', details:
call: formatDL(nm, txt, indent = max(nchar(nm, "w")) + 3)
error: incorrect values of 'indent' and 'width'
Error: package ‘mgcv’ could not be loaded
我尝试重新安装 mgcv 和 TSA,但没有帮助。但是,当我从 R 命令行加载 TSA 时,它可以正常工作。
我该如何解决这个问题?
R 版本 3.0.2 (2013-09-25)
RStudio 0.97.551,64 位。
更新:
我在 RStudio 的 32 位安装中测试了这个问题,它完美无缺。我不确定这里的真正罪魁祸首是什么。