Running 'testthat.R' [75s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(scoringTools)
  > 
  > test_check("scoringTools")
  -- Warning (test-augmentation.R:9:3): augmentation method works with speedglm an
  non-integer #successes in a binomial glm!
  
  -- ERROR (test-chiM.R:18:9): chiM method works with speedglm and glm -----------
  Error: contrasts can be applied only to factors with 2 or more levels
  Backtrace:
       x
    1. \-scoringTools::chiM_iter(...) test-chiM.R:18:8
    2.   +-scoringTools::normalizedGini(...)
    3.   | \-scoringTools:::Gini(actual, predicted)
    4.   +-stats::predict(best.disc[[1]], data_test, type = "response")
    5.   +-stats::predict(best.disc[[1]], data_test, type = "response")
    6.   \-speedglm:::predict.speedglm(best.disc[[1]], data_test, type = "response")
    7.     \-speedglm:::predict.speedlm(...)
    8.       +-stats::model.matrix(Terms, m, contrasts.arg = object$contrasts)
    9.       \-stats::model.matrix.default(Terms, m, contrasts.arg = object$contrasts)
   10.         \-stats::`contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]])
  
  -- Warning (test-fuzzy-augmentation.R:9:3): fuzzy-augmentation method works with
  non-integer #successes in a binomial glm!
  
  -- Warning (test-methods.R:17:3): show method for reject works -----------------
  non-integer #successes in a binomial glm!
  
  Generalized Linear Model of class 'speedglm':
  
  Call:  speedglm::speedglm(formula = labels ~ ., data = df_augmente[,      -which(names(df_augmente) %in% c("poidsfinal", "classe_SCORE"))][!df_augmente$poidsfinal ==      0, ], family = stats::binomial(link = "logit"), weights = df_augmente$poidsfinal[!df_augmente$poidsfinal ==      0]) 
  
  Coefficients:
  (Intercept)          x.1          x.2  
        0.628        1.418       -2.295  
  
  Generalized Linear Model of class 'speedglm':
  
  Call:  speedglm::speedglm(formula = stats::formula("labels ~ ."), data = Filter(function(x) (length(unique(x)) >      1), data.frame(sapply(disc[[i]]$Disc.data, as.factor), stringsAsFactors = TRUE)),      family = stats::binomial(link = "logit"), weights = NULL,      fitted = TRUE) 
  
  Coefficients:
  (Intercept)          X22          X32  
         2.22        -3.14        -2.97  
  
  Generalized Linear Model of class 'speedglm':
  
  Call:  speedglm::speedglm(formula = stats::formula("labels ~ ."), data = Filter(function(x) (length(unique(x)) >      1), data.frame(sapply(disc[[i]]$Disc.data, as.factor), stringsAsFactors = TRUE)),      family = stats::binomial(link = "logit"), weights = NULL,      fitted = TRUE) 
  
  Coefficients:
  (Intercept)          X22          X32  
         2.22        -3.14        -2.97  
  
  -- Warning (test-methods.R:66:3): predict method for reject inference works ----
  non-integer #successes in a binomial glm!
  
  -- Warning (test-methods.R:73:3): predict method for reject inference works ----
  non-integer #successes in a binomial glm!
  
  -- Warning (???): plot method for discretization works -------------------------
  Package 'plotly' suggested but not installed, falling back to 'graphics' package.
  
  -- Warning (???): plot method for discretization works -------------------------
  Package 'plotly' suggested but not installed, falling back to 'graphics' package.
  
  -- Warning (???): plot method for discretization works -------------------------
  Package 'plotly' suggested but not installed, falling back to 'graphics' package.
  
  -- Warning (???): plot method for discretization works -------------------------
  Speedglm not installed, using glm instead (slower).
  
  -- Warning (???): plot method for discretization works -------------------------
  Package 'plotly' suggested but not installed, falling back to 'graphics' package.
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  prediction from a rank-deficient fit may be misleading
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  the condition has length > 1 and only the first element will be used
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  Maximum number of iterations reached without convergence
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  prediction from a rank-deficient fit may be misleading
  
  -- Warning (test-topdown.R:18:9): topdown method works with speedglm -----------
  prediction from a rank-deficient fit may be misleading
  
  == testthat results  ===========================================================
  Warning (test-augmentation.R:9:3): augmentation method works with speedglm and glm
  ERROR (test-chiM.R:18:9): chiM method works with speedglm and glm
  Warning (test-fuzzy-augmentation.R:9:3): fuzzy-augmentation method works with speedglm and glm
  Warning (test-methods.R:17:3): show method for reject works
  Warning (test-methods.R:66:3): predict method for reject inference works
  Warning (test-methods.R:73:3): predict method for reject inference works
  Warning (???): plot method for discretization works
  Warning (???): plot method for discretization works
  Warning (???): plot method for discretization works
  Warning (???): plot method for discretization works
  Warning (???): plot method for discretization works
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  Warning (test-topdown.R:18:9): topdown method works with speedglm
  
  [ FAIL 1 | WARN 39 | SKIP 0 | PASS 447 ]
  Error: Test failures
  Execution halted