I am unable to load package 'zoo', apparently because of some problem with libR.dylib.

I am running OSX 10.7.2 on an iMac and just did a fresh install of R 2.14 followed by an installation of package quantmod and dependencies using the R Package Installer in the GUI. The problem is found with both 32 and 64-bit versions of R.


Any help would be welcome. The error message is below.

Thank you.

Colin Masson


Loading required package: Defaults
Loading required package: xts
Loading required package: zoo
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/Library/Frameworks/R.framework/Versions/2.14/Resources/library/zoo/libs/i386/zoo.so':
  dlopen(/Library/Frameworks/R.framework/Versions/2.14/Resources/library/zoo/libs/i386/zoo.so, 6): Library not loaded: @rpath/R.framework/Versions/2.14/Resources/lib/libR.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/2.14/Resources/library/zoo/libs/i386/zoo.so
  Reason: image not found
Error: package ‘zoo’ could not be loaded
> 


It appears that there is a file named libR.dylib:

$ ls -l /Library/Frameworks/R.framework/Versions/2.14/Resources/lib
total 47528
drwxrwxr-x  5 root  admin      170 Nov 10 09:33 i386
-rwxrwxr-x  1 root  admin  9896624 Oct 31 16:59 libR.dylib
drwxrwxr-x  3 root  admin      102 Oct 31 16:59 libR.dylib.dSYM
-rwxrwxr-x  1 root  admin   539904 Oct 31 16:59 libRblas.0.dylib
lrwxr-xr-x  1 root  admin       16 Nov 10 09:33 libRblas.dylib -> libRblas.0.dylib
drwxrwxr-x  3 root  admin      102 Oct 31 16:59 libRblas.dylib.dSYM
-rwxrwxr-x  1 root  admin    65981 Oct 31 16:59 libRblas.vecLib.dylib
-rwxrwxr-x  1 root  admin  3980060 Oct 31 16:59 libRlapack.dylib
drwxrwxr-x  3 root  admin      102 Oct 31 16:59 libRlapack.dylib.dSYM
-rwxrwxr-x  1 root  admin   736903 Oct 31 16:59 libgcc_s.1.dylib
-rwxrwxr-x  1 root  admin  8094839 Oct 31 16:59 libgfortran.2.dylib
-rwxrwxr-x  1 root  admin   996788 Oct 31 16:59 libreadline.5.2.dylib
lrwxr-xr-x  1 root  admin       21 Nov 10 09:33 libreadline.dylib -> libreadline.5.2.dylib
drwxrwxr-x  5 root  admin      170 Nov 10 09:33 x86_64

	[[alternative HTML version deleted]]

