tinytest
Setting up the tinytest
framework is covered in detail in the documentation of tinytest.
Quick summary:
tinytest::setup_tinytest(".")
.inst/tinytest
.checkmate
DESCRIPTION
and add checkmate
to Suggests
unless it is already listed in Imports
for its assertions.checkmate
, you must include the following lines at the beginning of the file:
r
library("tinytest")
library("checkmate")
using("checkmate")
If you forget the last line, expectations will not get reported correctly in the summary.
Also note that sourcing a file which includes using("checkmate")
is not sufficient.R CMD check
.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.