当我尝试包含 zoo 包时,收到以下错误信息:

> library(zoo)
Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object
     '/Users/zhangfan/Library/R/2.13/library/zoo/libs/i386/zoo.so':
  dlopen(/Users/zhangfan/Library/R/2.13/library/zoo/libs/i386/zoo.so, 6):
    Library not loaded: @rpath/R.framework/Versions/2.13/Resources/lib/libR.dylib
  Referenced from: /Users/zhangfan/Library/R/2.13/library/zoo/libs/i386/zoo.so
  Reason: image not found
Error: package/namespace load failed for 'zoo'

谁能解释一下这是什么意思?

非常感谢!

最佳答案

我最近尝试安装动物园后遇到了同样的错误。我通过从源代码安装来修复它。

install.packages("zoo", type="source", repos="http://cran.stat.ucla.edu/")

关于r - 在 R 中包含 zoo 包时出错,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/8141768/

10-11 15:13