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 <- "FieldSpectroscopyDP" # <-- Change to package name!
	test_package(pkg)
} else {
	warning("cannot run unit tests -- package testthat is not available")
}
tommasojulitta/FieldSpectroscopyDP documentation built on March 12, 2020, 1:42 p.m.