G'day Brian,
>>>>> "BDR" == Prof Brian Ripley <ripley@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 underBDR> 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") ).
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
This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:00 EST