12
edits
Changes
R
,install modules
</package>
</source>
To automatically install some packages, add the following:
<source lang="xml">
<install cmd='%COMSPEC% /c "%PROGRAMFILES%\R\R-2.9.2\bin\Rscript.exe" %SOFTWARE%\R\r-libraries.R ' />
<upgrade cmd='%COMSPEC% /c "%PROGRAMFILES%\R\R-2.9.2\bin\Rscript.exe" %SOFTWARE%\R\r-libraries.R' />
</source>
where r-libraries.R contains install.packages() commands like this (change repos to your nearest [http://cran.r-project.org/mirrors.html CRAN mirror]):
Sys.setenv("http_proxy"="http://proxy.example.com:3128")
install.packages("gbm", repos="http://cran.ms.unimelb.edu.au/")
install.packages("Design", repos="http://cran.ms.unimelb.edu.au/")
install.packages("rpart", repos="http://cran.ms.unimelb.edu.au/")
[[Category:Silent Installers]]