testthat-package {testthat}R Documentation

R package to make testing fun!

Description

Try the example below. Have a look at the references and learn more from function documentation such as expect_that().

Options

Author(s)

Maintainer: Hadley Wickham hadley@rstudio.com

Other contributors:

References

Wickham, H (2011). testthat: Get Started with Testing. The R Journal 3/1 5-10. https://journal.r-project.org/archive/2011-1/RJournal_2011-1_Wickham.pdf

http://adv-r.had.co.nz/Testing.html

See Also

Useful links:

Examples

library(testthat)
a <- 9
expect_that(a, is_less_than(10))
expect_lt(a, 10)

[Package testthat version 2.3.1 Index]