Skip to content

Can't load CARET package, on Mac OS X (latest), on R version 3.1.2 (2014-10-31)

3 messages · samarvir singh, John Kane, Brian Ripley

#
I installed CARET package, but when I try to load CARET. I see this error.
Please help. thank you


install.packages("caret")
trying URL '
http://cran.rstudio.com/bin/macosx/mavericks/contrib/3.1/caret_6.0-41.tgz'
Content type 'application/x-gzip' length 3997718 bytes (3.8 Mb)
opened URL
==================================================
downloaded 3.8 Mb

tar: Failed to set default locale

The downloaded binary packages are in
/var/folders/wr/h77ghk5104d1l5xyx3v67yk80000gn/T//RtmpEqNi84/downloaded_packages
Loading required package: lattice
Loading required package: ggplot2
Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object
'/Library/Frameworks/R.framework/Versions/3.1/Resources/library/minqa/libs/minqa.so':

dlopen(/Library/Frameworks/R.framework/Versions/3.1/Resources/library/minqa/libs/minqa.so,
6): initializer function 0x0 not in mapped image for
/Library/Frameworks/R.framework/Versions/3.1/Resources/library/minqa/libs/minqa.so

In addition: Warning messages:
1: package 'lattice' was built under R version 3.1.3
2: package 'ggplot2' was built under R version 3.1.3
Error: package or namespace load failed for 'caret'
#
Can you post the results of a 
sessionInfo()

It looks like you may have an old installation of R

John Kane
Kingston ON Canada
____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!
#
Several issues

1) The problem is with minqa, not caret (let alone CARET: R is 
case-sensitive).

2) As the posting guide says, update your R before posting.

3) We are missing the 'at a minimum' information, the output of 
sessionInfo().  You have not told us how you installed R, but my guess 
is that you used one of the two binary packages from CRAN (but we have 
no way to know which).  If so, you definitely should be using the 
R-sig-Mac mailing list.

So my advice is to

- update R
- reinstall your packages, especially minqa
- if problems persist, send a full report to R-sig-Mac following the 
posting guide.
On 12/04/2015 09:31, samarvir singh wrote: