Re: [R] R binaries

From: Berwin A Turlach <berwin_at_maths.uwa.edu.au>
Date: Wed 31 Aug 2005 - 17:07:36 EST

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 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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Aug 31 17:12:59 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:00 EST