Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
#25503 : do not build R if SAGE_R_LIB is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Monteil committed Jun 4, 2018
1 parent 177aa8e commit 380a2b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build/pkgs/r/spkg-install
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ if [ -z "$SAGE_LOCAL" ]; then
exit 1
fi

# Use system R (and cleanup previous install) if the variable SAGE_R_LIB is set.
if [ -v SAGE_R_LIB ] ; then
rm -rf ${SAGE_LOCAL}/lib/R
rm -f ${SAGE_LOCAL}/bin/R
rm -f ${SAGE_LOCAL}/bin/Rscript
exit 0
fi

# r uses grep output during its build
unset GREP_OPTIONS

Expand Down

0 comments on commit 380a2b0

Please sign in to comment.