summary refs log tree commit diff
path: root/pkgs/applications/science/math/R/setup-hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/science/math/R/setup-hook.sh')
-rw-r--r--pkgs/applications/science/math/R/setup-hook.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/R/setup-hook.sh b/pkgs/applications/science/math/R/setup-hook.sh
new file mode 100644
index 000000000000..a31289bbfba9
--- /dev/null
+++ b/pkgs/applications/science/math/R/setup-hook.sh
@@ -0,0 +1,5 @@
+addRLibPath () {
+    addToSearchPath R_LIBS_SITE $1/library
+}
+
+envHooks=(${envHooks[@]} addRLibPath)