version 0.2.1 2020-06-24

User-visible Changes

  • function test<-() assigns unit test code to objects (functions) as attribute "test"
  • function get_test() retrieves "test" attribute
  • function test_fun() retrieves "test" attribute and executes unit test
  • function unittest() retrieves all "test" attributes and executes these unit tests
  • for example code to run unittest() by devtools::test() & Co., see the tests/ and tests/testthat/ directories.