Skip to content

markvanderloo/uses.tinytest.extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published