diff options
author | mph <mph@FreeBSD.org> | 1998-05-04 17:53:35 +0000 |
---|---|---|
committer | mph <mph@FreeBSD.org> | 1998-05-04 17:53:35 +0000 |
commit | 37c9dc88b15424ad1932a8ce29095b374bd4c389 (patch) | |
tree | 0963464978a91f124e01977c9f16693fca07b76e /math/R/files | |
parent | b9be553eeb6cc931dd4801d0c30f1b2872bb4b47 (diff) | |
download | FreeBSD-ports-37c9dc88b15424ad1932a8ce29095b374bd4c389.zip FreeBSD-ports-37c9dc88b15424ad1932a8ce29095b374bd4c389.tar.gz |
Import of R, a language for mathematical programming.
PR: 6503
Submitted by: Maurice Castro <maurice@planetoid.serc.rmit.edu.au>
Diffstat (limited to 'math/R/files')
-rw-r--r-- | math/R/files/R | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/math/R/files/R b/math/R/files/R new file mode 100644 index 0000000..493f41b --- /dev/null +++ b/math/R/files/R @@ -0,0 +1,69 @@ +#!/bin/sh +# Shell wrapper for R executable. +# Just sets a few environment items + +RHOME=PREFIX/share/R +export RHOME + +if [ "$1" = "RHOME" ] +then + echo $RHOME; exit 0 +fi + +if [ "$1" = "SHLIB" ] +then + shift + exec sh $RHOME/etc/SHLIB $* +fi + +if [ "$1" = "COMPILE" ] +then + shift + exec sh $RHOME/etc/COMPILE $* +fi + +if [ "$1" = "INSTALL" ] +then + shift + exec sh $RHOME/etc/INSTALL $* +fi + +if [ "$1" = "REMOVE" ] +then + shift + exec sh $RHOME/etc/REMOVE $* +fi + +if [ "$1" = -xxgdb ] +then + shift + DEBUGGER=xxgdb +fi + +if [ "$1" = -gdb ] +then + shift + DEBUGGER=gdb +fi + +# Default Printer Paper Size +# Choose one of the following +# R_PAPERSIZE="a4" +# R_PAPERSIZE="letter" +# R_PAPERSIZE="none" +R_PAPERSIZE=a4 +export R_PAPERSIZE + +# Default Print Command +# Choose one of the following +# R_PRINTCMD="lpr" +# R_PRINTCMD="lp" +R_PRINTCMD=lpr +export R_PRINTCMD + +if [ $DEBUGGER ] +then + exec $DEBUGGER $RHOME/bin/R.binary +else + exec $RHOME/bin/R.binary $* +fi |