File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,13 +142,12 @@ mkdir -p "${R_LIBS_USER}" && chown ${NB_USER}:staff "${R_LIBS_USER}"
142142echo ' if (!dir.exists(Sys.getenv("R_LIBS_USER"))) dir.create(Sys.getenv("R_LIBS_USER"), recursive = TRUE)' >> " $RPROFILE_SITE "
143143echo ' .libPaths(c(Sys.getenv("R_LIBS_USER"), .libPaths()))' >> " $RPROFILE_SITE "
144144
145- # Set up R kernel for Jupyter Lab
146- Rscript - << -"EOF "
145+ Rscript - << EOF
147146install.packages('IRkernel', lib = .Library) # install in system library
148147Sys.setenv(PATH = paste("/srv/conda/envs/notebook/bin", Sys.getenv("PATH"), sep = ":"))
149148IRkernel::installspec(name = "ir4", displayname = "R ${R_VERSION} ", user = FALSE)
150149EOF
151- # fill SSL mismatch when using reticulate in R
150+ # fix SSL mismatch when using reticulate in R
152151echo " Configuring RStudio LD_LIBRARY_PATH in rserver.conf for proper SSL behavior when using conda env..."
153152echo " rsession-ld-library-path=/srv/conda/envs/notebook/lib" >> /etc/rstudio/rserver.conf
154153# Add this so that we make it easier to restore the PATH after reticulate::use_conda() adds conda to it. reticulate does not have deactivate function.
You can’t perform that action at this time.
0 commit comments