R 4.0.2 and Gurobi 9.0.2 compatibility issues
AnsweredGood morning,
I spent most of yesterday trying to get the updated version of Gurobi to work with updated R and RStudio (which is required for use of package prioritizr). With my previous 8.0, and newer 9.0.2, I received this error after following installation instructions and then installing the Gurobi library in R via RStudio:
> install.packages("C:/gurobi902/win64/R/gurobi_9.0-2.zip", repos = NULL, type = "win.binary")
Installing package into ‘C:/Users/cleopold/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
package ‘gurobi’ successfully unpacked and MD5 sums checked
> library(gurobi)
Loading required package: slam
Error: package or namespace load failed for ‘gurobi’:
package ‘gurobi’ was installed before R 4.0.0: please re-install it
I have completely uninstalled R and all files, Gurobi and all files, and reinstalled again, and same issues.
Gurobi is by far superior to my other solver options, and would love to be able to use it again. It was excellent for the older prioritzr version. (I did review previous topics regarding R and Gurobi, and they did not mention my specific error.)
Thanks, Christina
-
Hi Christina,
Gurobi 9.0.2 only supports R 3.6. I'll open a ticket for you in our online support portal to discuss this further.
Best,
Eli
0 -
I am re-upping this to check if there's a Gurobi 9.0-2 support w/ R 4.0.0. This is going to super important in my choice of solver to teach next semester.
Thanks.
0 -
Harish, they can send you some info about building the package. I still couldn't get it to work in Windows; I got about 90% of the way there, and am now using it on a Linux. You still need to build it with a Linux OS. It should be ok if you are programming-saavy. (I am not and needed a lot of help.) I don't know why they can't just send a link to unpack the package. I need it for an R package that no longer works without the updated version.
0 -
Unfortunately, Gurobi 9.0.x still only supports R 3.6. Harish, we do have some options available (which Christina alluded to), though nothing would be well-suited for an entire class. Feel free to open a ticket in our online support portal if you'd like to discuss this further.
0 -
Gurobi 9.0.3, released earlier this week, supports R 4.0.2.
1 -
Thank you so much for the update!! I'm off to install now.
0
Please sign in to leave a comment.
Comments
6 comments