Difference between revisions of "R"
From WPKG | Open Source Software Deployment and Distribution
m (add Category:Silent Installers) |
(install modules) |
||
Line 19: | Line 19: | ||
</package> | </package> | ||
</source> | </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]] | [[Category:Silent Installers]] |
Revision as of 08:04, 23 September 2009
This is a silent installer and uninstalled for R, a statistical programming language. Each version of R can be installed in parallel, however for cleanliness we don't want that, and so uninstall older versions. The components are listed in JRins.pl however they've been reorganised in trunk which will become 2.10, more details are in theCHANGES file, under INSTALLATION.
<package id="r" name="R" revision="292" priority="0" reboot="false">
<check type="uninstall" condition="exists" path="R for Windows 2.9.2" />
<install cmd='"%PROGRAMFILES%\R\R-2.7.1\unins000.exe" /verysilent' ><exit code="any" /></install>
<install cmd='"%PROGRAMFILES%\R\R-2.8.0\unins000.exe" /verysilent' ><exit code="any" /></install>
<install cmd='"%PROGRAMFILES%\R\R-2.8.1\unins000.exe" /verysilent' ><exit code="any" /></install>
<install cmd='"%PROGRAMFILES%\R\R-2.9.0\unins000.exe" /verysilent' ><exit code="any" /></install>
<install cmd='"%PROGRAMFILES%\R\R-2.9.1\unins000.exe" /verysilent' ><exit code="any" /></install>
<install cmd='%SOFTWARE%\R\r-2.9.2-win32.exe /verysilent /components="main,chtml,html,html/help,latex,manuals,manuals/basic,manuals/technical,manuals/refman,libdocs,devel,tcl,tcl/chm,Rd,trans"' />
<upgrade cmd='"%PROGRAMFILES%\R\R-2.7.1\unins000.exe" /verysilent' ><exit code="any" /></upgrade>
<upgrade cmd='"%PROGRAMFILES%\R\R-2.8.0\unins000.exe" /verysilent' ><exit code="any" /></upgrade>
<upgrade cmd='"%PROGRAMFILES%\R\R-2.8.1\unins000.exe" /verysilent' ><exit code="any" /></upgrade>
<upgrade cmd='"%PROGRAMFILES%\R\R-2.9.0\unins000.exe" /verysilent' ><exit code="any" /></upgrade>
<upgrade cmd='"%PROGRAMFILES%\R\R-2.9.1\unins000.exe" /verysilent' ><exit code="any" /></upgrade>
<upgrade cmd='%SOFTWARE%\R\base\r-2.9.2-win32.exe /verysilent /components="main,chtml,html,html/help,latex,manuals,manuals/basic,manuals/technical,manuals/refman,libdocs,devel,tcl,tcl/chm,Rd,trans"' />
<remove cmd='"%PROGRAMFILES%\R\R-2.9.2\unins000.exe" /verysilent' />
</package>
To automatically install some packages, add the following:
<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' />
where r-libraries.R contains install.packages() commands like this (change repos to your nearest 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/")