Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install lpSolve package

Tags:

r

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.

like image 462
kartik Avatar asked Aug 24 '26 02:08

kartik


2 Answers

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.

like image 165
hd1 Avatar answered Aug 25 '26 17:08

hd1


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.

like image 36
Tom_N_PDX Avatar answered Aug 25 '26 16:08

Tom_N_PDX