Message-ID: <17173.22328.417552.508676@bossiaea.maths.uwa.edu.au>
Date: 2005-08-31T07:07:36Z
From: Berwin A Turlach
Subject: R binaries
In-Reply-To: <Pine.LNX.4.61.0508310740140.26002@gannet.stats>
G'day Brian,
>>>>> "BDR" == Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:
BDR> On Wed, 31 Aug 2005, Berwin A Turlach wrote:
>> available.packages() does not seem to have a type argument
>> according to its documentation, so I guess that even if it is
>> run under Windows that it returns a list of all source packages
>> available in contrib.
BDR> Depends on what contriburl is set to, but the default under
BDR> Windows is binary packages. See my article in the current
BDR> R-Newsletter.
BDR> The default argument is contrb.url(getOption("repos")), and
BDR> contrib.url does have a type argument (and its default is
BDR> getOption("pkgType") ).
Thanks for pointing this out; seems as if I didn't read the
documentation in sufficient details.
Thus, since Nam-Ky works on a Linux box (private e-mail) the commands
should be
> options(repos=c(CRAN="http://cran.au.r-project.org/"),
+ pkgType="source")
> download.packages(available.packages(), destdir=".")
to download all the source files; followed by
> options(pkgType="win.binary")
> download.packages(available.packages(), destdir=".")
to download all contributed binary packages for Windows.
Cheers,
Berwin