@@ -151,8 +151,9 @@ Sys.setenv(PATH = paste("/srv/conda/envs/notebook/bin", Sys.getenv("PATH"), sep
151151IRkernel::installspec(name = "ir4", displayname = "R ${R_VERSION} ", user = FALSE)
152152EOF
153153# fix SSL mismatch when using reticulate in R
154- echo " Configuring RStudio LD_LIBRARY_PATH in rserver.conf for proper SSL behavior when using conda env..."
155- echo " rsession-ld-library-path=/srv/conda/envs/notebook/lib" >> /etc/rstudio/rserver.conf
154+ # Do not do this as it breaks R functions that use GDAL
155+ # echo "Configuring RStudio LD_LIBRARY_PATH in rserver.conf for proper SSL behavior when using conda env..."
156+ # echo "rsession-ld-library-path=/srv/conda/envs/notebook/lib" >> /etc/rstudio/rserver.conf
156157# 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.
157158echo " RSTUDIO_CLEAN_PATH=${PATH} " >> " ${R_HOME} /etc/Renviron.site"
158159# Do not do this. This will put conda on the system PATH and break R spatial packages due to GDAL mismatches
@@ -163,9 +164,9 @@ cat << 'EOF' >> "${R_HOME}/etc/Rprofile.site"
163164
164165setHook(packageEvent("reticulate", "attach"), function(...) {
165166 message(
166- "Use py_require() for Python interoperability without altering PATH.\n",
167- "Use use_condaenv('notebook') to use conda environment but this will alter PATH and may break R functions.\n",
168- "Restart R to reset PATH or store PATH before calling use_condaenv('notebook') and restore when done ."
167+ "Use py_require() for Python interoperability without altering PATH and GDAL dynamic linking .\n",
168+ "use_condaenv('notebook') will alter PATH and GDAL linking and can break R functions that use GDAL .\n",
169+ "See https://nmfs-opensci.github.io/py-rocket-base documentation for instructions ."
169170 )
170171})
171172EOF
0 commit comments