How does one tell R to compile code contained in subdirs of the /src directory? 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? Thx, Whit> R.Version()$platform [1] "i686-pc-linux-gnu" $arch [1] "i686" $os [1] "linux-gnu" $system [1] "i686, linux-gnu" $status [1] "" $major [1] "2" $minor [1] "3.1" $year [1] "2006" $month [1] "06" $day [1] "01" $`svn rev` [1] "38247" $language [1] "R" $version.string [1] "Version 2.3.1 (2006-06-01)" This e-mail message is intended only for the named recipient(s) above. It may contain confidential information. If you are not the intended recipient you are hereby notified that any dissemination, distribution or copying of this e-mail and any attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this e-mail and delete the message and any attachment(s) from your system. Thank you. [[alternative HTML version deleted]]
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