Install units package on MacOSX

In terminal:

brew install udunits
or
brew reinstall udunits

cd /opt/homebrew/Cellar/udunits/
ls

You will see something like:
2.2.28

Then, in R:

install.packages("units", configure.args = c("--with-udunits2-include=/opt/homebrew/Cellar/udunits/2.2.28/include", "--with-udunits2-lib=/opt/homebrew/Cellar/udunits/2.2.28/lib"), type="source")



And it works !

Commentaires

Posts les plus consultés de ce blog

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

Install treemix in ubuntu 20.04

stepAIC from package MASS with AICc