rig
rig copied to clipboard
Can work without root permission
Hi,
Today I tried to install rim in a HPC without root permission. I found it require sudo
to install R release. Could rim work for such case?
Best,
Shixiang
I agree that this would be great, but unfortunately it is hard, because the Linux builds need to be in /opt
. There is no easy way around this currently.
It is worth taking a look at relocating R, though, so I'll keep this open.
Thanks. :)
Perhaps pull the R and its dependencies from conda ecosystem? I don't if this is easier. Just a thought.
If you use conda, then you don't need rim, you can just do everything in conda. So we'll not use conda.
Seems like we only need to rewrite a couple of files:
ubuntu@foo:/opt/R/devel$ ag /opt/R/devel
bin/R
4:R_HOME_DIR=/opt/R/devel/lib/R
5:if test "${R_HOME_DIR}" = "/opt/R/devel/lib/R"; then
19: if [ -x "/opt/R/devel/${libnn}/R/bin/exec/R" ]; then
20: R_HOME_DIR="/opt/R/devel/${libnn}/R"
21: elif [ -x "/opt/R/devel/${libnn_fallback}/R/bin/exec/R" ]; then
22: R_HOME_DIR="/opt/R/devel/${libnn_fallback}/R"
35:R_SHARE_DIR=/opt/R/devel/lib/R/share
37:R_INCLUDE_DIR=/opt/R/devel/lib/R/include
39:R_DOC_DIR=/opt/R/devel/lib/R/doc
lib/R/bin/R
4:R_HOME_DIR=/opt/R/devel/lib/R
5:if test "${R_HOME_DIR}" = "/opt/R/devel/lib/R"; then
19: if [ -x "/opt/R/devel/${libnn}/R/bin/exec/R" ]; then
20: R_HOME_DIR="/opt/R/devel/${libnn}/R"
21: elif [ -x "/opt/R/devel/${libnn_fallback}/R/bin/exec/R" ]; then
22: R_HOME_DIR="/opt/R/devel/${libnn_fallback}/R"
35:R_SHARE_DIR=/opt/R/devel/lib/R/share
37:R_INCLUDE_DIR=/opt/R/devel/lib/R/include
39:R_DOC_DIR=/opt/R/devel/lib/R/doc
lib/R/etc/Makeconf
7:# configure '--prefix=/opt/R/devel' '--enable-R-shlib' '--with-tcltk' '--enable-memory-profiling' '--with-x' '--with-blas' '--with-lapack' 'R_PRINTCMD=/usr/bin/lpr' 'R_PAPERSIZE=letter' 'R_BROWSER=xdg-open' 'R_PDFVIEWER=xdg-open' 'LIBnn=lib'
lib/pkgconfig/libR.pc
1:rhome=/opt/R/devel/lib/R
3:rincludedir=/opt/R/devel/lib/R/include
Hi, is this feature available now?
Would like an update on this as well. I also need to install R releases without root permission.
Hey there, would like to add that this would be a great feature for those of us working in HPC or multi-user server environments where it's desirable to have users manage their own R installations. Similar to what's possible with pyenv.
To clarify.
- We could relatively easily implement the use case where admin installs various R versions, and each user can set their own default.
- It is much harder to implement the use case where users install their own R installations, because our R builds are not self-contained and they are not relocatable. I.e. they require a bunch of system packages, and they have to live in
/opt
.
To clarify.
- We could relatively easily implement the use case where admin installs various R versions, and each user can set their own default.
- It is much harder to implement the use case where users install their own R installations, because our R builds are not self-contained and they are not relocatable. I.e. they require a bunch of system packages, and they have to live in
/opt
.
This makes sense. Of course, I respect the work that has already gone into this! Even just having the first scenario as a viable option would be a fantastic enhancement. I don't know how many people care, but there are at least a few of us.
For those who struggle to install R without root permission, docker would be a good option, e.g. Rocker project