powered by
expect_that
testthat.use_colours
TRUE
testthat.summary.max_reports: The maximum number of detailed test reports printed for the summary reporter (default: 15).
testthat.summary.max_reports
testthat is a new testing framework for R that is easy learn and use, and integrates with your existing workflow.
https://github.com/hadley/testthat
http://adv-r.had.co.nz/Testing.html
library(testthat) a <- 9 expect_that(a, is_less_than(10)) expect_less_than(a, 10)
Run the code above in your browser using DataLab