[R] Can't install packages from ESS command line after upgrading to R 3.3.2 on MacOS

David Winsemius dwinsemius at comcast.net
Tue Dec 13 19:43:11 CET 2016


> On Dec 13, 2016, at 8:15 AM, Gonçalo Ferraz <gferraz29 at gmail.com> wrote:
> 
> Hi, 
> 
> 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.

There are two different installation packages. One has the GUI and one doesn't. Which one did you use?

And this is really coming to the wrong mailing list:

Should have been directed to: R-SIG-Mac at r-project.org


> Nevertheless, I can open R in ESS. The problem is I can’t install packages from there. Here is an example of the 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'
> Content type 'application/x-gzip' length 249529 bytes (243 KB)
> ==================================================
> downloaded 243 KB
> 
> The downloaded binary packages are in
> 	/var/folders/kf/zkk64rtj5197pzwq94qfls0w0000gn/T//RtmpuSb7P1/downloaded_packages

rjags requires an external package to be installed to be functional

packageDescription('rjags')

# SystemRequirements: JAGS 4.x.y

Is that done?

>> 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’

So, is there a symlink in that directory?


> 
> Does anyone know what may be going on?
> 
> Thank you,
> 
> Gonçalo
> 
-- 

David Winsemius
Alameda, CA, USA



More information about the R-help mailing list