test.latrend {latrend} | R Documentation |
Test the implementation of an lcMethod and associated lcModel subclasses
Description
Test a lcMethod
subclass implementation and its resulting lcModel
implementation.
Usage
test.latrend(
class = "lcMethodKML",
instantiator = NULL,
data = NULL,
args = list(),
tests = c("method", "basic", "fitted", "predict", "cluster-single", "cluster-three"),
maxFails = 5L,
errorOnFail = FALSE,
clusterRecovery = c("warn", "ignore", "fail"),
verbose = TRUE
)
Arguments
class |
The name of the |
instantiator |
A |
data |
An optional dataset comprising three highly distinct constant clusters that will be used for testing, represented by a |
args |
Other arguments passed to the instantiator function. |
tests |
A |
maxFails |
The maximum number of allowed test condition failures before testing is ended prematurely. |
errorOnFail |
Whether to throw the test errors as an error. This is always enabled while running package tests. |
clusterRecovery |
Whether to test for correct recovery/identification of the original clusters in the test data. By default, a warning is outputted. |
verbose |
Whether the output testing results. This is always disabled while running package tests. |
Note
This is an experimental function that is subject to large changes in the future. The default dataset used for testing is subject to change.
Examples
test.latrend("lcMethodRandom", tests = c("method", "basic"), clusterRecovery = "skip")