Could we introduce a library hierarchy in the `data' directory?  The
standard stuff would then go into `data/base', and if add-ons have their
own data (examples!), these would go into a corresponding subdir of
`data'.
Only three small changes would be necessary:
1. In `data', create a `base' subdir and move all data files there.
2. Replace `cmd/filename' by the version below:
*********************************************************************
#!/bin/sh
for file in $HOME/lib/R/$1/$2 \
            $RHOME/$1/$2 \
            $RHOME/$1/[^.]*/$2;
do
    if [ -r $file ]
    then
	echo $file
	break
    fi
done
if [ ! -r $file ]
then
    echo
fi
*********************************************************************
3. In src/library/LIBSETUP.in, add
*********************************************************************
        if test -d ${lib}/data
        then
                mkdir -p ../../data/${lib}
                cp ${lib}/data/* ../../data/${lib}
        fi
*********************************************************************
before the final `done'.
We've been using the above filename script for a very long time now,
without any problems ...
Please ...
-k
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel 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-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-