Installing “MCDA” package in R (on a Mac)
The Decision Deck project collaboratively develops Open Source software tools to support the Multi-Criteria Decision Aiding (MCDA) process.
Recently, the board of Decision Deck has taken an initiative to develop an interface for R, the “MCDA” package. However, installing it with RStudio, on a Mac needs a few tricks, mainly because the dependencies are only available in source form, and may need compilation of C/C++/Fortran. Here is what I did:
- Make sure that you have accepted the latest user agreement for Xcode. You can do that by simply opening Xcode, or by typing
sudo xcodebuild -license accept
- A critical dependency is the “Rglpk” package, which by its turn requires the “glpk” to be installed. To install “glpk” you can:
- Install Homebrew (if you don’t have it installed yet). You can follow the Homebrew site, or just type
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
- Then just type:
brew install glpk
Then, you should expect to be ready. Go to RStudio and type:
install.packages("MCDA")
Good Luck!
Recent Comments