The R Project SVN R

Rev

Rev 55308 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
55308 ripley 1
# ${R_HOME}/bin/Stangle -*- sh -*-
39141 hornik 2
 
3
R_EXE="${R_HOME}/bin/R"
55308 ripley 4
 
77228 maechler 5
R_STANGLE_OPTIONS=${R_STANGLE_OPTIONS:='--vanilla --no-echo'}
55308 ripley 6
 
7
args=
8
while test -n "${1}"; do
9
  ## quote each argument here, unquote in R code.
10
  args="${args}nextArg${1}"
11
  shift
12
done
13
 
14
echo "utils:::.Stangle()" | "${R_EXE}" $R_STANGLE_OPTIONS --args ${args}