Skip to content
Prev 285946 / 398502 Next

How to download all packages and then install

On 21/02/2012 03:31, Xiong Deng wrote:
The simplest way is to create a local CRAN mirror, then use a file:// 
URL to refer to it.

The part of CRAN you need is ca 2GB at present.  I use an rsync script 
something like

rsync -rvCtL --delete --include="*.tar.gz" --include="PACKAGES*" 
--exclude="*/*" cran.r-project.org::CRAN/src/contrib .

(so as not to mirror the 16GB Archive) and access it via
contriburl="file:///.../R/packages/contrib"