Closed a-torgovitsky closed 2 years ago
Okay, this has been corrected now.
The warning about lpSolveAPI
now pops up when the solver is lpSolveAPI
and an LP problem is being solved.
But I'm not sure why you got that message when you did not specify the solver. If no solver is stated, the package first checks whether Gurobi is available. If it is, it should use Gurobi.
So what happens if you run requireNamespace("gurobi")
?
Nothing should happen.
But if you get an error message like
> requireNamespace("gurobi")
Loading required namespace: gurobi
Failed with error: 'there is no package called 'gurobi''
Then I'll find a different way to check what solvers the user has available.
Ok, this second part was my problem. I was checking this in RStudio, and for some reason I have path issues (LD_LIBRARY_PATH) in RStudio that I don't have in R console. This lead Gurobi not to load in RStudio. So I think we can close this now if the first part has been corrected.
Very good!
Is this desired behavior?
I'm focusing on the first warning message. Actually, the second is a problem too, but let me open a different issue for that.
If I specify
gurobi
then the first error message goes away. But this is for a point identified specification, so why should I get some annoying error aboutlpSolveAPI
? Gurobi isn't being used at all here.