statdivlab / corncob

Count Regression for Correlated Observations with the Beta-binomial
102 stars 22 forks source link

ERROR: compilation failed for package ‘lpSolveAPI’ #86

Closed Ivy-ops closed 4 years ago

Ivy-ops commented 4 years ago

Hi developer, Thanks for creating this package. I met this error in package installation. May I know how to solve it? Your help is highly appreciated! Thanks!!

`* DONE (ROI)

bryandmartin commented 4 years ago

Hi @Ivy-ops ,

So to start this actually isn't a problem with corncob. But I've dealt with issues like this a lot in the past so I'm happy to try and talk you through this. Let's start with a possible easy solution. Can you try entering

install.packages("lpSolveAPI") then try to install corncob again, and let me know if the error is the same?

Ivy-ops commented 4 years ago

Hi @bryandmartin,

Thanks for the nice help! Yes, the error is the same when install.packages("lpSolveAPI"). --Update I found the reason. I am installing this package on cluster. It seems that this package has been installed, which may caused by the conflict. Now corncob is installed. Again, thanks so much!!

bryandmartin commented 4 years ago

Great! Before I close this, would you mind posting how you solved the issue in detail for posterity? I'm a bit confused why working on a cluster would cause this issue.