markvanderloo / uses.tinytest.extension

An R package that is tested with tinytest, and an extension

Repository from Github https://github.commarkvanderloo/uses.tinytest.extensionRepository from Github https://github.commarkvanderloo/uses.tinytest.extension

uses.tinytest.extension

An R package that is tested with tinytest, and an extension package that extends tinytest.

Purpose of this repository.

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).

How to use an extension

To use a package that extends tinytest, all you need to do is

  1. Add the extending package to the Suggests: field of the DESCRIPTION file.
  2. Use library(nameOfExtendingPackage) in your test files in inst/tinytest/

See also the 'using tinytest' vignette.

library(tinytest)
vignette("using_tinytest", package="tinytest")

Install this package

remotes::install_github("markvanderloo/uses.tinytest.extension/pkg")

Obtain source, build, test

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

About

An R package that is tested with tinytest, and an extension

License:GNU General Public License v3.0


Languages

Language:Makefile 57.2%Language:R 42.8%