Skip to content

Latest commit

 

History

History
65 lines (39 loc) · 1.18 KB

README.md

File metadata and controls

65 lines (39 loc) · 1.18 KB

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