Skip to content

Commit 09fe8ed

Browse files
committed
Add header for conda activate script
1 parent 57a92b1 commit 09fe8ed

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

dev/conda/activate.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
#!/bin/sh
22

3+
# ACTIVATE SH
4+
5+
# This is called when the user activates the Anaconda environment
6+
# containing swift-t or swift-t-r .
7+
# If R_LIBS_USER is unset,
8+
# R will add a default library location to .libPaths()
9+
# This commonly breaks R because the Anaconda R does not match other
10+
# R installations on the same system.
11+
# Here, we force R_LIBS_USER to the Anaconda R library location.
12+
# This may make it more difficult for users to reuse libraries on the
13+
# same system, but that is a small price to pay against very
14+
# confusing error messages due to compiler incompatibilies.
15+
316
if [[ ! -z ${R_LIBS_USER+x} ]]; then
417
export R_LIBS_USER_BACKUP="$R_LIBS_USER"
518
fi

0 commit comments

Comments
 (0)