R即使在安装包之后也找不到包

我一直在工作的动物园包,我已经安装了很久以前。今天,我创建了一个新的R脚本,并运行库(动物园),并得到以下错误:

 > library(zoo)
 Error in library(zoo) : there is no package called ‘zoo’

Odd ..仍然,我尝试重新安装包使用install.packages(“zoo”),并得到以下:

 > install.packages("zoo")
 Installing package(s) into ‘C:/Users/U122337.BOSTONADVISORS/Documents/R/win-library/2.15’
 (as ‘lib’ is unspecified)
 --- Please select a CRAN mirror for use in this session ---
 trying URL 'http://cran.cnr.Berkeley.edu/bin/windows/contrib/2.15/zoo_1.7-10.zip'
 Content type 'application/zip' length 874474 bytes (853 Kb)
 opened URL
 downloaded 853 Kb

 package ‘zoo’ successfully unpacked and MD5 sums checked
 Warning: cannot remove prior installation of package ‘zoo’

The downloaded binary packages are in
    C:\Users\U122337.BOSTONADVISORS\AppData\Local\Temp\Rtmp404t8Y\downloaded_packages

当我尝试上传的包,我得到错误再次,动物园包不存在!

我不知道发生了什么!我退出GUI并重新启动它,同样的问题。我一直使用这个包,我不知道为什么这种情况发生了!

任何帮助吗?谢谢!

最佳答案
做.libPaths(),关闭每个R运行,检入第一个目录,删除动物园包重新启动R并再次安装动物园。当然,你需要有足够的权利。

转载注明原文:R即使在安装包之后也找不到包 - 代码日志