Installing nloptr on clusters using SLURM
lsaverbio opened this issue · comments
I am a graduate student in genetics and doing my best to understand understand R, not along having to deal with understanding how to deal with this package. I have a large data set so I use Crane through my institution and then go into a R module. From the threads, I am suppose to install cmake? Is this while in the R module or outside? There are certain permissions I may or may not have to even do this. I have spent days trying to install nloptr and really need help.
So I figured out that I an use loptr on my R studio desktop but just not on the terminal. I do not have permission through my university to use 'sudo'. I've contacted the computing center here about this issue. Maybe they can help with the cmake issue..
Update: spoke to the computing center here and they created a module for Cmake. Just simply have to load the module before going into the R environment. Just leaving this here in case anyone else runs into this type of issue.
Can you please edit your posts and subject to show correct terminology so that we are all on the same page
- assuming you refer to the CRAN repositories at https://cran.r-project.org: use CRAN, not Crane, not R-Crane
- the library is called nlopt
- the package is called nloptr
Thanks.
@lsaverbio Please implement what @eddelbuettel suggests. I will close this issue by the end of the week.
Thanks @astamm. I don't think I can edit here. Can you maybe at least fix the Subject: of the thread?
Should be better now. I cannot edit the content though.
I could edit his post in fact. But that would require a fair amount of rewriting and I am not sure this issue will be helpful for others.
Glad to finally hear from you. I sense I might have offended you, and, if it is the case, I apologise. An issue is helpful to people if
- it is clearly stated; and,
- it is not single user specific.
In this case, both seem not to be fulfilled but we lack information to judge the second point given that the first point is still unmet.
The issue seems at best useful for people using your Crane cluster but Crane/UNL are very specific to you as a student there.
The relevant part I think is how to install nloptr on a cluster that uses slurm
with resources installed as slurm modules. In particular,
- either the
nlopt
library is already installed with version>= 2.7.0
in which case you should do
module load nlopt
module load R
R CMD INSTALL nloptr_2.0.2.tar.gz
- or it is not or too old in which case you should do
module load cmake
module load R
R CMD INSTALL nloptr_2.0.2.tar.gz
Let me know if I correctly understood your problem and stated the issue well.
Note that in the case you load cmake
, the version should be at least 3.15
.
To how relevent: anyone using a cluster/super computer to process their data.
Yes, we ended up understanding that but that was not written like that in the issue title and first post.
Anyway, thanks for reporting that.
It seems it boils down to knowing how to use a cluster with slurm modules. Not really an nloptr issue then.