Unit testing for developing R packages

Description

Unit testing for developing R packages

Details

Unit testing for developing R packages

Fields

pkg

character the name of the package

testDpath

character the absolute directory names where to look for test files. Default: <pkg>/tests

testFnameRegexp

character Regular expression for matching test file names. Default: *.R

testFuncRegexp

character Regular expression for matching test functions. Default: test.*

Author(s)

Xiaobei Zhao

Examples

1
2
3
4
5
6
## Not run: 
pkg <- 'Xmisc'
test.obj <- UnitTest$new(pkg=pkg)
test.obj$runme()

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.