R-alpha: R directory standard

Kurt Hornik (Kurt.Hornik@ci.tuwien.ac.at)
Wed, 26 Mar 1997 14:39:44 +0100

Date: Wed, 26 Mar 1997 14:39:44 +0100
Message-Id: <199703261339.OAA07648@aragorn.ci.tuwien.ac.at>
From: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>
To: Douglas Bates <bates@stat.wisc.edu>
Subject: R-alpha: R directory standard
In-Reply-To: <m0w9ZTU-000hh5C@franz.stat.wisc.edu>

>>>>> Douglas Bates writes:

>>>>> "Kurt" == Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> writes:

Kurt> We might also need to standardize things a bit (installation
Kurt> dirs, ...)

> Right.  A little bit of planning now can certainly help the whole
> community in the future.  I'm certainly willing to participate in
> discussions.

O.k., here is something to get us started.

* I think the logical layout is to have

	/usr/local/bin/R		# shell script
	/usr/local/lib/R		# `everything'
	/usr/local/man/man1/R.1		# man page

where in the long run `/usr/local' should be read as `installation

NOTE:  This does not correspond to the GNU standards which would require


for platform-independent data and


for the binaries.  It also does not match the Debian rules because it is
in /usr/local ... but it seems most reasonable for the time being.


* The next question is the organization of /usr/local/lib/R.  In the
long run I would like to have something like


so that `local' add-ons can be dealt with independently from the
distribution proper.

This could be done right away if the filename and help scripts are
modified, similar to the versions I posted some time ago.

The only problem that I see is that there should be a `local' Rprofile
in the site tree, which currently is not supported.

* Here comes the hard part.  Currently, we have the lib, library, data,
and html dirs `flat' and help in a per-package (`section') hierarchy.
In the long run, this is not a good idea.  E.g., add-ons might provide
their own data etc.  We need to decide whether we like


(e.g. data/survival) or


(e.g. survival/{data,funs,help,objs,...} better.

* We also need to make the installation for add-ons from source easier.
There should be a script which can be told whether to use C or Fortran
sources (if applicable) and have something like make and make install

Any feedback is appreciated.

r-testers 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-testers-request@stat.math.ethz.ch