[R] Downloading Package Sources

Uwe Ligges ligges at statistik.tu-dortmund.de
Sun Oct 31 19:09:19 CET 2010



On 31.10.2010 11:30, Santosh Srinivas wrote:
> Dear Group, any idea how I can download the source code for all packages in
> Windows 7?

Either apply wget on yourCRANmirror/src/contrib/

or

- choose CRAN mirror
- select CRAN as the only repository (unless yoiu want other packages as 
well)
- ask R to
download.packages(available.packages(type="source")[,1], type="source", 
destdir=".....")

Maybe you want to redefine the filters. for available.packages. See its 
help page for details.

Uwe Ligges





> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list