An R package that is tested with
tinytest, and an extension
package that extends tinytest
.
The purpose of this package is to show how to build an R package that uses the
tinytest
testing infrastructure as well as an extension package called
tinytest.extensions (the
latter is not on CRAN).
To use a package that extends tinytest, all you need to do is
- Add the extending package to the
Suggests:
field of theDESCRIPTION
file. - Use
library(nameOfExtendingPackage)
in your test files ininst/tinytest/
See also the 'using tinytest' vignette.
library(tinytest)
vignette("using_tinytest", package="tinytest")
remotes::install_github("markvanderloo/uses.tinytest.extension/pkg")
git clone https://github.com/markvanderloo/uses.tinytest.extension
cd uses.tinytest.extension
Run tests:
make test
Build, run R CMD check
make check
Build, install
make install