@@ -201,6 +201,12 @@ test_that("multiple methods which", {
201
201
# We exclude method ics because it is too slow
202
202
test_that(" all methods which" , {
203
203
skip_if_not_installed(" bigutilsr" )
204
+ skip_if_not_installed(" MASS" )
205
+ skip_if_not_installed(" dbscan" )
206
+ skip_if_not_installed(" ICS" )
207
+ skip_if_not_installed(" ICSOutlier" )
208
+ skip_if_not_installed(" loo" )
209
+
204
210
expect_identical(
205
211
which(check_outliers(mtcars ,
206
212
method = c(
@@ -224,7 +230,13 @@ test_that("all methods which", {
224
230
225
231
test_that(" multiple methods with ID" , {
226
232
skip_if_not_installed(" bigutilsr" )
227
- data <- datawizard :: rownames_as_column(mtcars , var = " car" )
233
+ skip_if_not_installed(" MASS" )
234
+ skip_if_not_installed(" dbscan" )
235
+ skip_if_not_installed(" ICS" )
236
+ skip_if_not_installed(" ICSOutlier" )
237
+ skip_if_not_installed(" loo" )
238
+
239
+ data <- datawizard :: rownames_as_column(mtcars , var = " car" )
228
240
x <- attributes(check_outliers(data ,
229
241
method = c(
230
242
" zscore" , " zscore_robust" , " iqr" , " ci" , " eti" , " hdi" , " bci" ,
@@ -282,6 +294,7 @@ test_that("cook multiple methods which", {
282
294
283
295
test_that(" pareto which" , {
284
296
skip_if_not_installed(" dbscan" )
297
+ skip_if_not_installed(" loo" )
285
298
skip_if_not_installed(" rstanarm" )
286
299
set.seed(123 )
287
300
model <- rstanarm :: stan_glm(mpg ~ qsec + wt , data = mtcars , refresh = 0 )
@@ -295,6 +308,7 @@ test_that("pareto which", {
295
308
296
309
test_that(" pareto multiple methods which" , {
297
310
skip_if_not_installed(" dbscan" )
311
+ skip_if_not_installed(" loo" )
298
312
skip_if_not_installed(" rstanarm" )
299
313
set.seed(123 )
300
314
model <- rstanarm :: stan_glm(mpg ~ qsec + wt , data = mtcars , refresh = 0 )
0 commit comments