File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,13 +140,13 @@ echo "${R_LIBS_USER}"
140140mkdir -p " ${R_LIBS_USER} " && chown ${NB_USER} :staff " ${R_LIBS_USER} "
141141# Ensure R_LIBS_USER exists at runtime inside R
142142echo ' 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
146146Rscript - << -"EOF "
147147install.packages('IRkernel', lib = .Library) # install in system library
148148Sys.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 )
150150EOF
151151# fill SSL mismatch when using reticulate in R
152152echo " Configuring RStudio LD_LIBRARY_PATH in rserver.conf for proper SSL behavior when using conda env..."
You can’t perform that action at this time.
0 commit comments