[R] contributed package source codes

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed May 4 10:40:35 CEST 2005

On Wed, 4 May 2005, Duncan Murdoch wrote:

> mingan wrote:
>> Is there a way for me to get the source code ( C/C++ or FORTRAN)  for a 
>> specific  R package ?
> The source to contributed packages is in <CRAN 
> mirror>/src/contrib/PACKAGES.html.  You can find your CRAN mirror by looking 
> at the CRAN entry in options("repos").  (You may need to call 
> chooseCRANmirror() first, if it hasn't already been called.)

And in 2.1.0 you can retrieve the source by e.g.

 	download.packages("AMORE", type="source", destdir="/tmp")

on any platform (MacOS X not tested).

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-help mailing list