When I tried to include the zoo package, I received the following error information:
> 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'
Could anyone explain what that means?
Thanks a lot!
I had the same error after trying to install zoo recently. I fixed it by installing from source.
install.packages("zoo", type="source", repos="http://cran.stat.ucla.edu/")