有些包没找到?

时间:2016-05-01 06:13:55

标签: r

当我打开我的R.它显示了一些警告信息,这意味着我丢失了一些包,就像

一样
Warning message:
package "methods" in options("defaultPackages") was not found 
During startup - Warning messages:
1: package ‘datasets’ in options("defaultPackages") was not found 
2: package ‘utils’ in options("defaultPackages") was not found 
3: package ‘grDevices’ in options("defaultPackages") was not found 
4: package ‘graphics’ in options("defaultPackages") was not found 
5: package ‘stats’ in options("defaultPackages") was not found 
6: package ‘methods’ in options("defaultPackages") was not found

然后我无法使用一些基本功能,而且我重新安装了R两次,它仍然没有用。任何人都知道如何处理这种情况?

1 个答案:

答案 0 :(得分:0)

根据R帮助中的link,您的R路径可能已损坏:

  

“现在我已经找到了一点问题,问题就出现了   连接到从哪个文件夹R调用。“由Stefan McKinnon Edwards

您可以调整PATH变量或尝试在另一个文件夹中重新安装R并从那里开始。这应该可以解决问题。