Skip to content

Commit 6039506

Browse files
committed
fix ${R_VERSION} not expanded
1 parent 3de77f3 commit 6039506

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

scripts/install-rocker.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,12 @@ mkdir -p "${R_LIBS_USER}" && chown ${NB_USER}:staff "${R_LIBS_USER}"
142142
echo 'if (!dir.exists(Sys.getenv("R_LIBS_USER"))) dir.create(Sys.getenv("R_LIBS_USER"), recursive = TRUE)' >> "$RPROFILE_SITE"
143143
echo '.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
147146
install.packages('IRkernel', lib = .Library) # install in system library
148147
Sys.setenv(PATH = paste("/srv/conda/envs/notebook/bin", Sys.getenv("PATH"), sep = ":"))
149148
IRkernel::installspec(name = "ir4", displayname = "R ${R_VERSION}", user = FALSE)
150149
EOF
151-
# fill SSL mismatch when using reticulate in R
150+
# fix SSL mismatch when using reticulate in R
152151
echo "Configuring RStudio LD_LIBRARY_PATH in rserver.conf for proper SSL behavior when using conda env..."
153152
echo "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.

0 commit comments

Comments
 (0)