Skip to content

Commit

Permalink
🚧
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Feb 6, 2025
1 parent 6c07a4a commit 13083d8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions install_r.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,19 @@ apt-get install --yes --no-install-recommends python3-{dbus,gi,apt} \
## Then install bspm (as root) and enable it, and enable a speed optimization
Rscript -e 'install.packages("bspm")'
R_HOME=$(R RHOME)
# must go first
echo "options(bspm.sudo = TRUE)" >> ${R_HOME}/etc/Rprofile.site
echo "options(bspm.version.check=FALSE)" >> ${R_HOME}/etc/Rprofile.site

# must go first. Only configure for ROOT user
echo "options(bspm.sudo = TRUE)" >> ${HOME}/.Rprofile
echo "options(bspm.version.check=FALSE)" >> ${HOME}/.Rprofile
echo "suppressMessages(bspm::enable())" >> ${HOME}/.Rprofile

chown root:staff ${R_HOME}/site-library
chmod g+ws ${R_HOME}/site-library

ln -s /usr/lib/R/site-library/littler/examples/install2.r /usr/local/bin/install2.r

## add user to sudoers
usermod -a -G staff ${NB_USER}
echo "${NB_USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
## add user to sudoers -- not jupyterhub compatible
# usermod -a -G staff ${NB_USER}
# echo "${NB_USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers


0 comments on commit 13083d8

Please sign in to comment.