The R Project SVN R

Rev

Rev 33359 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33359 Rev 36017
Line 4... Line 4...
4
 
4
 
5
revision='$Revision: 1.13 $'
5
revision='$Revision: 1.13 $'
6
version=`set - ${revision}; echo ${2}`
6
version=`set - ${revision}; echo ${2}`
7
version="R batch front end ${version}
7
version="R batch front end ${version}
8
 
8
 
9
Copyright (C) 2000--2003 The R Core Development Team.
9
Copyright (C) 2000--2005 The R Core Development Team.
10
This is free software; see the GNU General Public Licence version 2
10
This is free software; see the GNU General Public Licence version 2
11
or later for copying conditions.  There is NO warranty."
11
or later for copying conditions.  There is NO warranty."
12
 
12
 
13
opts="--restore --save --no-readline"
13
opts="--restore --save --no-readline"
14
 
14
 
Line 35... Line 35...
35
  case ${1} in
35
  case ${1} in
36
    -h|--help)
36
    -h|--help)
37
      echo "${usage}"; exit 0 ;;
37
      echo "${usage}"; exit 0 ;;
38
    -v|--version)
38
    -v|--version)
39
      echo "${version}"; exit 0 ;;
39
      echo "${version}"; exit 0 ;;
40
    --min-vsize|--min-nsize|--max-vsize|--max-nsize|--vsize|--nsize)
-
 
41
      # Deprecated (hence not documented)...
-
 
42
      opts="${opts} ${1}=${2}"; shift 2 ;;
-
 
43
    --) shift; break ;;
40
    --) shift; break ;;
44
    -*) opts="${opts} ${1}"; shift ;;
41
    -*) opts="${opts} ${1}"; shift ;;
45
    *)  break ;;
42
    *)  break ;;
46
  esac
43
  esac
47
done
44
done
Line 49... Line 46...
49
in=${1}
46
in=${1}
50
out=${2-`basename ${1} .R`.Rout}
47
out=${2-`basename ${1} .R`.Rout}
51
 
48
 
52
(echo "invisible(options(echo = TRUE))"
49
(echo "invisible(options(echo = TRUE))"
53
  cat ${in}
50
  cat ${in}
54
  echo "proc.time()"
51
  echo ''; echo "proc.time()"
55
) | ${R_HOME}/bin/R ${opts} >${out} 2>&1
52
) | ${R_HOME}/bin/R ${opts} >${out} 2>&1
56
 
53
 
57
### Local Variables: ***
54
### Local Variables: ***
58
### mode: sh ***
55
### mode: sh ***
59
### sh-indentation: 2 ***
56
### sh-indentation: 2 ***