tests/doRUnit.R

## unit tests will not be done if RUnit is not available
if(require("testthat", quietly=TRUE)) {
	#pkg <- "PKG" # <-- Change to package name!
	pkg <- "FieldSpectroscopyCC" # <-- Change to package name!
	test_package(pkg)
} else {
	warning("cannot run unit tests -- package testthat is not available")
}
tommasojulitta/FieldSpectroscopyCC documentation built on May 31, 2019, 6:19 p.m.