R Studio Erroring out when trying to install.packages ('IpSolve')

Hello!

I'm a newby at R and could use some help figuring out this issue.

I've tried to install IpSolveAPI, but erroring out.

install.packages('IpSolveAPI')
Here is my error message:
Installing package into ‘C:/Users/Dell/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)
Warning in install.packages : package ‘IpSolveAPI’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at R Installation and Administration

I updated my RStudio to ver4.3.2 and downloaded the IpSolve_5.6.19.tar package from CRAN [CRAN - Package lpSolve] extracted it. Tried to install the package again but still receiving the same error

Not sure what to do next?

Any help would be most appreciated!
Marissa

Hello, some questions to help us investigate:

  • How did you install R? Are you using Anaconda?
  • What is the output of the following command?
    getOption("repos")
    

As a follow up to @ Gabor I had no problem with an installation on basic plain-vanilla R setup on R version 4.3.2 (2023-10-31).

You might want to install the {pak} package and try

pak::pkg_install("IpSolveAPI")

Actually, this is a simple typo, it is lpSolveAPI, with an l and not IpsolveAPI with a capital I.

Hi Gabor,
Thank you for responding to my issue!

  1. Here is the result of the AP1 code you wanted me to run:

install.packages('IpSolveAP1')
Installing package into ‘C:/Users/Dell/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘IpSolveAP1’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at

-->Basically the same error I received when trying to run using API with a capital "i"

  1. You asked me to run getOption()
    Here is the code result:

getOption('repos')
CRAN
"https://cran.rstudio.com/"
attr(,"RStudio")
[1] TRUE

What else can I try?
Maybe I will try it from Anaconda...

Thank u
Marissa

Hi Gabor,
Please see my response on the next post.
Thanks,
Marissa

Hello,
I installed R from https://cran.rstudio.com/ not Anaconda.

Marissa

That seems like another typo. The name of the package is lpSolveAPI:

Hi Gabor,
I managed to install.packages using a small letter "L" prefixing lpSolveAPI.

install.packages('lpSolveAPI')
Installing package into ‘C:/Users/Dell/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.3/lpSolveAPI_5.5.2.0-17.10.zip'
Content type 'application/zip' length 593395 bytes (579 KB)
downloaded 579 KB

package ‘lpSolveAPI’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\Dell\AppData\Local\Temp\RtmpeUcrbs\downloaded_packages

thanks for all of your help!

M

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.