From murdoch at stats.uwo.ca  Wed Nov 19 22:33:46 2008
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Wed, 19 Nov 2008 16:33:46 -0500
Subject: [Rd] Strategy for downloading packages
In-Reply-To: <alpine.LFD.2.00.0811192107020.19044@gannet.stats.ox.ac.uk>
References: <49247C96.3010504@stats.uwo.ca>
	<alpine.LFD.2.00.0811192107020.19044@gannet.stats.ox.ac.uk>
Message-ID: <4924863A.4010308@stats.uwo.ca>

On 11/19/2008 4:16 PM, Prof Brian Ripley wrote:
> On Wed, 19 Nov 2008, Duncan Murdoch wrote:
> 
>> I have a client who wants to install R and a custom package on a machine with 
>> no internet connection, so he wants to put everything needed on a CDROM and 
>> install from there.
>>
>> I've told him how to work out what is needed, but it seems that too much 
>> manual work is needed:  he needs to install the packages from .zip files 
>> (this is Windows) in the right order so dependencies are met, etc.
> 
> I don't think the install order matters for binary packages (on Windows or 
> elsewhere).  install.packages() certainly does not optimize it.

Thanks, as I mentioned to Simon I didn't know this.  That definitely 
makes things simpler.

> 
>> Is there an automated tool to do this?  That is:
> 
> The easiest way is to copy a repository to the CD-ROM, and point repos at 
> that (as a file::// URL).  You can even add files and rebuild the PACKAGES 
> file (using tools::write_PACKAGES).
> 
> But if the list of packages never changes, why not just install them in a 
> separate library and burn that on the CD-ROM?

In the long run, the first order dependencies won't likely change, but 
their dependencies might.  We didn't write those packages, we just use 
them.

Duncan Murdoch


> 
>> - start from an R installation that's working, and then follow the 
>> dependency tree from a specified list of packages to generate a list of 
>> packages to download
>> - download all the .zip or .tar.gz files for those from CRAN (possibly 
>> listing the ones that don't exist there, because they are local custom ones)
>> - produce a script that can be run to install all of them on a new R 
>> install.
>>
>> Duncan Murdoch
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>



[Rd] Strategy for downloading packages
Duncan Murdoch