The R Project SVN R

Rev

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

Rev Author Line No. Line
48997 maechler 1
# ${R_HOME}/bin/INSTALL -*- sh -*- for installing add-on packages
47438 ripley 2
 
48997 maechler 3
if test -z "${R_INSTALL_VANILLA}"
4
then vanilla_install=false
5
else vanilla_install=true
6
fi
7
 
8
## Note: Almost all "--<args>" are now handled in R !
48050 ripley 9
args=
10
while test -n "${1}"; do
48997 maechler 11
  case ${1} in
12
    --no-vanilla)
13
	  vanilla_install=false ;;
14
    --use-vanilla)
15
	  vanilla_install=true ;;
16
 
17
  *)
18
  ## quote each argument here, unquote in R code.
48050 ripley 19
  args="${args}nextArg${1}"
48997 maechler 20
  ;;
21
  esac
48050 ripley 22
  shift
23
done
47550 ripley 24
 
48997 maechler 25
Rcmds=
26
if [ $vanilla_install = true ]
27
then ## get the user's  .libPaths()[1]:
28
     args="${args}nextArg--maybe-get-user-libPaths"
29
     myArgs='--vanilla'
30
else myArgs='--no-restore'
31
fi
32
 
47574 ripley 33
## NB: Apple's ICU needs LC_COLLATE set when R is started.
77228 maechler 34
echo 'tools:::.install_packages()' | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" $myArgs --no-echo --args ${args}