Learn R Programming

Xmisc (version 0.2.1)

UnitTest-class: Unit testing for developing R packages

Description

Unit testing for developing R packages

Arguments

Fields

pkg
character the name of the package
testDpath
character the absolute directory names where to look for test files. Default: /tests
testFnameRegexp
character Regular expression for matching test file names. Default: *.R
testFuncRegexp
character Regular expression for matching test functions. Default: test.*

Details

Unit testing for developing R packages

Examples

Run this code
## Not run: 
# pkg <- 'Xmisc'
# test.obj <- UnitTest$new(pkg=pkg)
# test.obj$runme()
# ## End(Not run)

Run the code above in your browser using DataLab