Trouble installing packages mixomics

package-installation

#1

I'm trying to install mixomics onto my Mac
OS X 10.12.3 sierra

I installed r and r studio
when I try to put mixomics I get this :

install.packages("mixOmics")
trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/mixOmics_6.3.2.tgz'
Content type 'application/x-gzip' length 5700387 bytes (5.4 MB)
==================================================
downloaded 5.4 MB

The downloaded binary packages are in
/var/folders/d0/2tln2q1j73b8mnlhcrpwczz80000gp/T//RtmpQ4fkj5/downloaded_packages

library(mixOmics)
Loading required package: MASS
Loading required package: lattice
Loading required package: ggplot2
Error: package or namespace load failed for ‘mixOmics’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘digest’

can anyone help me ?
thanks!


#2

Hi there - it looks like the digest package is required. Try running install.packages("digest") and then try library(mixOmics) again.


#3

thank you so much !

So I did that and got

can you help me with that too ?
I'm a real beginner here thanks for the help :slight_smile:


#4

For future reference, it's much easier to read output text as text than it is from a screenshot. That said, it looks like you're missing Xcode command line tools (specifically xcode-select), which you need for that package.

You should be able to install that by running xcode-select --install in your terminal, but I'd advise you to read up a little bit, since it's been some time since I've had to do that: