The R Project SVN R

Rev

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

Rev 52964 Rev 54995
Line 2... Line 2...
2
 
2
 
3
R_EXE="${R_HOME}/bin/R"
3
R_EXE="${R_HOME}/bin/R"
4
 
4
 
5
R_SWEAVE_OPTIONS=${R_SWEAVE_OPTIONS:='--no-save --no-restore --slave'}
5
R_SWEAVE_OPTIONS=${R_SWEAVE_OPTIONS:='--no-save --no-restore --slave'}
6
 
6
 
-
 
7
args=
-
 
8
while test -n "${1}"; do
-
 
9
  case ${1} in
-
 
10
    --no-vanilla)
-
 
11
	  vanilla_install=false ;;
-
 
12
    --use-vanilla)
-
 
13
	  vanilla_install=true ;;
-
 
14
 
-
 
15
  *)
-
 
16
  ## quote each argument here, unquote in R code.
-
 
17
  args="${args}nextArg${1}"
-
 
18
  ;;
-
 
19
  esac
-
 
20
  shift
-
 
21
done
-
 
22
 
7
echo "utils:::.Sweave(\"$1\")" | "${R_EXE}" $R_SWEAVE_OPTIONS
23
echo "utils:::.Sweave()" | "${R_EXE}" $R_SWEAVE_OPTIONS --args ${args}