From ripley at stats.ox.ac.uk  Sun Sep 24 20:59:08 2006
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Sun, 24 Sep 2006 19:59:08 +0100 (BST)
Subject: [Rd] package that has a subdirectory in src
In-Reply-To: <E58BE6136618CF4C964F6EC7773AE569B4FEB6@ex4.nyc.hcmny.com>
References: <E58BE6136618CF4C964F6EC7773AE569B4FEB6@ex4.nyc.hcmny.com>
Message-ID: <Pine.LNX.4.64.0609241954590.6277@gannet.stats.ox.ac.uk>

On Sun, 24 Sep 2006, Armstrong, Whit wrote:

> How does one tell R to compile code contained in subdirs of the /src
> directory?

Write a src/Makefile.  There are several examples on CRAN: e.g. Matrix, 
SQLiteDF, mapproj.

> I have a few files that I'd like to keep together as one unit.
>
> The cheesy way that I can think of is to put slinks in the src directory
> to the files contained in the subdir, but that's not really the solution
> I'm looking for.
>
> I was hoping to avoid adding a configure.in file to the project.
>
> By way of background information, the files in the subdirectory are a
> separate subversion project that is shared between many R packages that
> I am working on.  Does anyone have any suggestions?

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




[Rd] package that has a subdirectory in src
Prof Brian Ripley