/usr/share/doc/r-cran-dplyr/run-unit-test is in r-cran-dplyr 0.7.4-3.
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 19 20 | #!/bin/sh -e
oname=dplyr
pkg=r-cran-`echo $oname | tr '[A-Z]' '[a-z]'`
if [ "$ADTTMP" = "" ] ; then
ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
fi
cd $ADTTMP
cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
find . -name "*.gz" -exec gunzip \{\} \;
# There is no package r-cran-lahman available yet
for testfile in testthat/* ; do
if grep -q lahman $testfile ; then
rm $testfile
fi
done
sed -i '/[Ll]ahman/d' testthat.R
LC_ALL=C.UTF-8 R --no-save < testthat.R
|