Skip to content

Commit a0596ed

Browse files
committed
kernel was getting installed into home
Rprofile.site had wrong order of user lib
1 parent f15b20d commit a0596ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/install-rocker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ echo "${R_LIBS_USER}"
140140
mkdir -p "${R_LIBS_USER}" && chown ${NB_USER}:staff "${R_LIBS_USER}"
141141
# Ensure R_LIBS_USER exists at runtime inside R
142142
echo 'if (!dir.exists(Sys.getenv("R_LIBS_USER"))) dir.create(Sys.getenv("R_LIBS_USER"), recursive = TRUE)' >> "$RPROFILE_SITE"
143-
echo '.libPaths(c(.libPaths(), Sys.getenv("R_LIBS_USER")))' >> "$RPROFILE_SITE"
143+
echo '.libPaths(c(Sys.getenv("R_LIBS_USER"), .libPaths()))' >> "$RPROFILE_SITE"
144144

145145
# Set up R kernel for Jupyter Lab
146146
Rscript - <<-"EOF"
147147
install.packages('IRkernel', lib = .Library) # install in system library
148148
Sys.setenv(PATH = paste("/srv/conda/envs/notebook/bin", Sys.getenv("PATH"), sep = ":"))
149-
IRkernel::installspec(name = "ir", displayname = "R ${R_VERSION}")
149+
IRkernel::installspec(name = "ir4", displayname = "R ${R_VERSION}", user = FALSE)
150150
EOF
151151
# fill SSL mismatch when using reticulate in R
152152
echo "Configuring RStudio LD_LIBRARY_PATH in rserver.conf for proper SSL behavior when using conda env..."

0 commit comments

Comments
 (0)