Install mixcat package in MacOSX and Ubuntu

 In ubuntu 20.04:

sudo apt-get install libgsl0-dev

install.packages("mixcat")


In MacOSX:

brew install gsl  

Create a directory ~/.R/ if it does not exist

and a file Makervars with

PKG_LIBS=-L/usr/local/opt/gettext/lib

CFLAGS=-I/usr/local/opt/gsl/include

LDFLAGS=-L/usr/local/opt/gsl/lib -lgsl -lgslcblas

Then in R:

install.packages("mixcat")


After the installation, remove the Makervars file or it will create interference with other installation, for example nloptr.

Thanks to aymeric.stamm at math.cnrs.fr to have found this solution to install the nloptr package !

Commentaires

Posts les plus consultés de ce blog

Standard error from Hessian Matrix... what can be done when problem occurs

stepAIC from package MASS with AICc

Install treemix in ubuntu 20.04