: package ‘utils’ in options("defaultPackages") was not found
2: package ‘stats’ in options("defaultPackages") was not found
情况描述如下:
Error: package or namespace load fail: package ‘utils’ in options("defaultPackages") was not found ed for ‘utils’:
2: package ‘stats’ in options("defaultPackages") was not found
loadNamespace()里算'utils'时.onLoad失败了,详细内容:
调用: options(op.utils[toset])
错误: 'editor'的值不对
Error: package or namespace load failed for ‘stats’:
loadNamespace()里算'utils'时.onLoad失败了,详细内容:
调用: options(op.utils[toset])
错误: 'editor'的值不对
在启动过程中 - Warning messages:
1: package ‘utils’ in options("defaultPackages") was not found
2: package ‘stats’ in options("defaultPackages") was not found
解决方法:
在文件 /etc/R$ sudo vim ldpaths末尾 加上如图二蓝色部分 修改后进入R如图,恢复正常