gpt4 book ai didi

r - "package ‘mgcv’ 无法加载”仅在 RStudio 中

转载 作者:行者123 更新时间:2023-12-04 09:31:26 28 4
gpt4 key购买 nike

尝试在 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 位安装中测试了这个问题,它工作得很好。我不确定这里真正的罪魁祸首是什么。

最佳答案

在 RStudio 中,只需调整右侧的大小即可增加窗口的宽度。现在试试 library(mgcv)再次,它的工作原理!

关于r - "package ‘mgcv’ 无法加载”仅在 RStudio 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19086111/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com