The R Project SVN R

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
11483 hornik 1
#! /bin/sh
2
#
3
# ${R_HOME}/bin/Rcmd
4
 
5
## Shell script wrapper for all R CMD commands.
11515 hornik 6
## For internal use only.
11483 hornik 7
 
8
R_CMD="${R_HOME}/bin/Rcmd"
9
export R_CMD
10
 
14330 hornik 11
R_OSTYPE="unix"
12
export R_OSTYPE
13
 
11483 hornik 14
## Add `share/perl' to the perl library path.
15
if test -n "${PERL5LIB}"; then
16
  PERL5LIB="${R_HOME}/share/perl:${PERL5LIB}"
17
  export PERL5LIB
18
else
19
  PERLLIB="${R_HOME}/share/perl:${PERLLIB}"
20
  export PERLLIB
21
fi
22
 
23
. ${R_HOME}/etc/Renviron
24
export `sed 's/^ *#.*//; s/^\(.*\)=.*/\1/' ${R_HOME}/etc/Renviron`
25
 
13288 ripley 26
PATH="${R_HOME}/bin:${PATH}" 
12256 pd 27
case "${1}" in
28
  perl)
29
    shift;
13288 ripley 30
    exec ${PERL} "${@}"
12256 pd 31
    ;;
32
  awk)
33
    shift;
13288 ripley 34
    exec ${AWK}  "${@}"
12256 pd 35
    ;;
36
  *)
13288 ripley 37
    exec "${@}"
12256 pd 38
    ;;
39
esac
11483 hornik 40
 
41
### Local Variables: ***
42
### mode: sh ***
43
### sh-indentation: 2 ***
44
### End: ***