# load data
data(GARS_data_norm)
data(GARS_classes)
data(GARS_popul)
# check input
expect_error(GARS_FitFun())
expect_error(GARS_FitFun(GARS_data_norm))
expect_error(GARS_FitFun(GARS_data_norm, GARS_classes))
expect_error(GARS_FitFun(GARS_data_norm, GARS_popul))
expect_error(GARS_FitFun("GARS_data_norm", GARS_classes, GARS_popul))
expect_error(GARS_FitFun(GARS_data_norm, "GARS_classes", GARS_popul))
expect_error(GARS_FitFun(GARS_data_norm, GARS_classes, "GARS_popul"))
expect_error(GARS_FitFun(as.list(GARS_data_norm), GARS_classes, GARS_popul))
expect_error(GARS_FitFun(GARS_data_norm,
as.numeric(GARS_classes),
GARS_popul))
expect_error(GARS_FitFun(GARS_data_norm, GARS_classes[1:5], GARS_popul))
# check output
fitness_scores <-GARS_FitFun(GARS_data_norm, GARS_classes, GARS_popul)
expect_true(length(fitness_scores) == dim(GARS_popul)[2])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.