[ESS] Can't load libraries after upgrading to R 3.3.2

Gonçalo Ferraz gferraz29 at gmail.com
Tue Dec 13 17:58:26 CET 2016


I just upgraded R to version 3.3.2 on a Mac OS X system. I suspect something may have gone wrong with the installation (despite a ‘successfully installed’ message) because the R.App is nowhere to be found.
Nevertheless, I can open R in ESS, which how I always use it. The problem though, is I can’t install packages from the R command line within ESS. Here is a sample error message:

> install.packages("rjags")
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://vps.fmvz.usp.br/CRAN/bin/macosx/mavericks/contrib/3.3/rjags_4-6.tgz' <https://vps.fmvz.usp.br/CRAN/bin/macosx/mavericks/contrib/3.3/rjags_4-6.tgz'>
Content type 'application/x-gzip' length 249529 bytes (243 KB)
downloaded 243 KB

The downloaded binary packages are in
> library(rjags)
Loading required package: coda
Error : .onLoad failed in loadNamespace() for 'rjags', details:
 call: dyn.load(file, DLLpath = DLLpath, ...)
 error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.3/Resources/library/rjags/libs/rjags.so':
 dlopen(/Library/Frameworks/R.framework/Versions/3.3/Resources/library/rjags/libs/rjags.so, 10): Library not loaded: /usr/local/lib/libjags.4.dylib
 Referenced from: /Library/Frameworks/R.framework/Versions/3.3/Resources/library/rjags/libs/rjags.so
 Reason: image not found
Error: package or namespace load failed for ‘rjags’

This happens with other packages as well. Does anyone know what may be going on?

Thank you,

	[[alternative HTML version deleted]]

More information about the ESS-help mailing list