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

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Apr 12 15:47:33 CEST 2015


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:
> 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
>
>> library("caret")
> 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'
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford
1 South Parks Road, Oxford OX1 3TG, UK



More information about the R-help mailing list