The R Project SVN R

Rev

Rev 2763 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2763 Rev 4580
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# ${RHOME}/bin/BATCH
3
# ${R_HOME}/bin/BATCH
4
 
4
 
5
OPTS="--restore --save --no-readline"
5
OPTS="--restore --save --no-readline"
6
 
6
 
7
while test -n "${1}"; do
7
while test -n "${1}"; do
8
    case ${1} in
8
    case ${1} in
Line 18... Line 18...
18
OUT=${2-`basename ${1} .R`.Rout}
18
OUT=${2-`basename ${1} .R`.Rout}
19
 
19
 
20
(echo "invisible(options(echo = TRUE))"
20
(echo "invisible(options(echo = TRUE))"
21
 cat ${IN}
21
 cat ${IN}
22
 echo "proc.time()"
22
 echo "proc.time()"
23
) | ${RHOME}/bin/R ${OPTS} >${OUT} 2>&1
23
) | ${R_HOME}/bin/R ${OPTS} >${OUT} 2>&1