We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb70616 + 18f174d commit b539324Copy full SHA for b539324
1 file changed
scripts/install-r-packages.sh
@@ -18,6 +18,12 @@ fi
18
# Main script execution as NB_USER
19
echo "Running install-r-packages.sh as ${NB_USER}"
20
21
+# Get R_HOME from R itself if not already set
22
+if [[ -z "${R_HOME:-}" ]]; then
23
+ export R_HOME="$(R RHOME)"
24
+ echo " R_HOME set to: ${R_HOME}"
25
+fi
26
+
27
# Make sure we install to the site-library
28
echo ".libPaths('${R_HOME}/site-library')" > /tmp/rprofile.site
29
export R_PROFILE=/tmp/rprofile.site
0 commit comments