analysis_suite_devtools: Developer utility functions for hacking AnalysisSuite

Description Usage Arguments Details See Also Examples

Description

These convenience functions should be useful for anyone working on the AnalysisSuite codebase. reload_analysis_suite will unload the nat.as package and reload it, thereby reloading the whole of AnalysisSuite. The expected use case is when AnalysisSuite code is being modified by a developer and s/he wants to quickly reload any changes.

Run AnalysisSuite tests

Usage

1
2
3
reload_analysis_suite()

test_analysis_suite(testdirs = NULL, browse = is.null(testdirs))

Arguments

testdirs

Character vector of relative paths to test directory. Defaults to running all tests when NULL.

browse

Load html summary of test results in web browser.

Details

test_analysis_suite will run a set of RUnit tests for the code.

See Also

test_analysis_suite

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
library(nat.as)
# use
# spot a bug
# hack the code
reload_analysis_suite()
# test the fix
test_analysis_suite()
# repeat ...

## End(Not run)

jefferis/nat.as documentation built on May 19, 2019, 3:06 a.m.