Install lpSolve package
I am new to R. Can anyone tell me how can I add the lpSolve package to R on a mac for example which folder to add it to, etc?
I couldn't find anything in the documentation.
You install R packages using install.packages
; so try install.packages('lpSolve', repos='http://cran.rstudio.com')
and let me know if you have further questions.
If your new to R I'd suggest RStudio, a visual IDE for R. We use it for teaching students basic statistics and programming in R,
RStudio Download
Inside Rstudio
Menu Tools -> Install Packages
- Type Package Name
- Click Install
Now, after it installs, goto the Package Tab in the slower right pane.
Check the box next to the package and it will be loaded.
I'd suggest using the "lpSolveAPI" interface to lpSolve.