Changes

Jump to: navigation, search

R

1 byte removed, 11:19, 1 April 2014
no edit summary
<source lang="xml">
<check type="execute" path='"%COMSPEC%" /c for /d %r in ( "%PROGRAMFILES%\R\*.*" ) do if exist "%r\bin\rscript.exe" "%r\bin\rscript.exe" -e "installed.packages()" | find /c "r_pkg_name" > NUL' condition="exitcodeequalto" value="0" />
<install cmd='"%COMSPEC%" /c for /d %r in ( "%PROGRAMFILES%\R\*.*" ) do if exist "%r\bin\rscript.exe" start /wait "r_pkg_name" "%r\bin\rscript.exe" "%SOFTWARE%\r\r_pkg_name.rR"' >
<exit code="any" />
</install>
<upgrade include="install" />
</source>
where r-librariesr_pkg_name.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/")
6
edits

Navigation menu