Document Unit Tests Roxygen-Style

Much as 'roxygen2' allows one to document functions in the same file as the function itself, 'roxut' allows one to write the unit tests in the same file as the function. Once processed, the unit tests are moved to the appropriate directory. Currently supports 'testthat' and 'tinytest' frameworks. The 'roxygen2' package provides much of the infrastructure.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.4.0 by Bryan A. Hanson, 3 months ago

Report a bug at

Browse source code at

Authors: Bryan A. Hanson [aut, cre] , Claudia Beleites [ctb] , Hadley Wickham [aut, cph] (roxygen2 code) , Peter Danenberg [aut, cph] (roxygen2 code) , Gábor Csárdi [aut] (roxygen2 code) , Manuel Eugster [aut, cph] (roxygen2 code) , RStudio [cph] (roxygen2 code)

Documentation:   PDF Manual  

GPL-3 license

Depends on roxygen2

Suggests tinytest, testthat

Suggested by ChemoSpecUtils.

See at CRAN