Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.GSO.4.31.0202020752150.15523-100000@auk.stats>
Date: 2002-02-02T08:03:59Z
From: Brian Ripley
Subject: R-ex directory in a R package; large software in R
In-Reply-To: <FC0B9DA2600ED4118F76009027AA5DDD02B27B5F@ALEX2>

On Fri, 1 Feb 2002 jonathan_li at agilent.com wrote:

[...]

> A more general and related question is: how does one organize R files in a
> package? Should they all just go into pkg/R? To create a large package, this
> way of organization is not very desirable. Most of R packages seem to be
> relatively small so far. But I am hoping that some larger software can be
> built around R. Can people comment on this?

I would dispute that there are not examples of large packages: certainly
some involve man-years of work.  You will notice that pkg/R is normally
organized into files, each file containing a collection of related
functions. It doen't need to be like that: rpart for example is `one
function, one file' but built from a particular SCCS organization.
But unless the project is really large that seems a natural level of
granularity.

As Thomas has commented, a source package is a distribution model. That is
not how for masters of, e.g. the VR bundle are stored but rather generated
by a script.  For personal use one can omit the INSTALL set and build a
binary package directly if more convenient.

-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._