The R Project SVN R

Rev

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

Rev 47522 Rev 52274
Line 1... Line 1...
1
#
1
#
2
# ${R_HOME}/bin/Stangle
2
# ${R_HOME}/bin/Stangle
3
 
3
 
4
revision='$Rev: 47522 $'
4
revision='$Rev: 52274 $'
5
version=`set - ${revision}; echo ${2}`
5
version=`set - ${revision}; echo ${2}`
6
version="Stangle front-end: ${R_VERSION} (r${version})
6
version="Stangle front-end: ${R_VERSION} (r${version})
7
 
7
 
8
Copyright (C) 2006-7 The R Core Development Team.
8
Copyright (C) 2006-10 The R Core Development Team.
9
This is free software; see the GNU General Public License version 2
9
This is free software; see the GNU General Public License version 2
10
or later for copying conditions.  There is NO warranty."
10
or later for copying conditions.  There is NO warranty."
11
 
11
 
12
usage="Usage: R CMD Stangle file
12
usage="Usage: R CMD Stangle file
13
 
13
 
Line 26... Line 26...
26
     echo "${version}"; exit 0 ;;
26
     echo "${version}"; exit 0 ;;
27
esac
27
esac
28
 
28
 
29
R_EXE="${R_HOME}/bin/R"
29
R_EXE="${R_HOME}/bin/R"
30
echo "library(\"utils\"); Stangle(\"$1\")" | \
30
echo "library(\"utils\"); Stangle(\"$1\")" | \
31
  "${R_EXE}" --no-restore --slave
31
  "${R_EXE}" --vanilla --slave