The R Project SVN R

Rev

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

Rev 48880 Rev 48997
Line 1... Line -...
1
#
-
 
2
# ${R_HOME}/bin/INSTALL for installing add-on packages
1
# ${R_HOME}/bin/INSTALL -*- sh -*- for installing add-on packages
3
 
2
 
-
 
3
if test -z "${R_INSTALL_VANILLA}"
-
 
4
then vanilla_install=false
-
 
5
else vanilla_install=true
-
 
6
fi
-
 
7
 
4
## quote each argument here, unquote in R code.
8
## Note: Almost all "--<args>" are now handled in R !
5
args=
9
args=
6
while test -n "${1}"; do
10
while test -n "${1}"; do
-
 
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.
7
  args="${args}nextArg${1}"
19
  args="${args}nextArg${1}"
-
 
20
  ;;
-
 
21
  esac
8
  shift
22
  shift
9
done
23
done
10
 
24
 
-
 
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
 
11
## NB: Apple's ICU needs LC_COLLATE set when R is started.
33
## NB: Apple's ICU needs LC_COLLATE set when R is started.
12
echo 'tools:::.install_packages()' | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" --no-restore --slave --args ${args}
34
echo 'tools:::.install_packages()' | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" $myArgs --slave --args ${args}