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
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.)
Please sign in to leave a comment.