tests/testthat/test-ggraphs.R

#all data combined for all species
soutl <- multidetect(data = iris, var = 'Sepal.Width',
                 multiple = FALSE, exclude = "Species",
                 methods = c('mixediqr', 'logboxplot','lof',
                             'distboxplot','iqr', 'semiqr','adjbox',
                             'zscore', 'hampel'), silence_true_errors = TRUE)

#multiple species per species
moutl <- multidetect(data = iris, var = 'Sepal.Width',
                      multiple = TRUE, var_col  = "Species",
                      methods = c('mixediqr', 'logboxplot','lof'), silence_true_errors = TRUE)

test_that(desc = "count the classes produced",
          code = {
            expect_equal(length(class(ggoutliers(soutl))), 5)

          })

Try the specleanr package in your browser

Any scripts or data that you put into this service are public.

specleanr documentation built on Nov. 26, 2025, 1:07 a.m.