/usr/share/doc/r-cran-learnbayes/run-unit-test is in r-cran-learnbayes 2.15-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/bin/sh -e
oname=LearnBayes
pkg=r-cran-`echo $oname | tr '[A-Z]' '[a-z]'`
if [ "$ADTTMP" = "" ] ; then
ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $ADTTMP
cp /usr/share/doc/$pkg/examples/vignettes/* $ADTTMP
gunzip *.gz
for rnw in `ls *.[rR]nw` ; do
rfile=`echo $rnw | sed 's/\.[rR]nw/.R/'`
R --no-save <<EOT
Stangle("$rnw")
source("$rfile", echo=TRUE)
EOT
done
rm -rf *
|