Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [153s/276s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (require("testthat")) {
  +   library(insight)
  + 
  +   is_dev_version <- length(strsplit(packageDescription("insight")$Version, "\\.")[[1]]) > 3
  + 
  +   if (is_dev_version) {
  +     Sys.setenv("RunAllinsightTests" = "yes")
  +   } else {
  +     Sys.setenv("RunAllinsightTests" = "no")
  +   }
  +   si <- Sys.info()
  + 
  +   osx <- tryCatch(
  +     {
  +       if (!is.null(si["sysname"])) {
  +         si["sysname"] == "Darwin" || grepl("^darwin", R.version$os)
  +       } else {
  +         FALSE
  +       }
  +     },
  +     error = function(e) {
  +       FALSE
  +     }
  +   )
  + 
  +   solaris <- tryCatch(
  +     {
  +       if (!is.null(si["sysname"])) {
  +         grepl("SunOS", si["sysname"], ignore.case = TRUE)
  +       } else {
  +         FALSE
  +       }
  +     },
  +     error = function(e) {
  +       FALSE
  +     }
  +   )
  + 
  +   # disable / enable if needed
  +   if (.Platform$OS.type == "unix" && is_dev_version) {
  +     Sys.setenv("RunAllinsightStanTests" = "yes")
  +   } else {
  +     Sys.setenv("RunAllinsightStanTests" = "no")
  +   }
  + 
  +   if (!osx && !solaris) {
  +     test_check("insight")
  +   }
  + }
  Loading required package: testthat
  Contrasts set to contr.sum for the following variables: treatment, gender
  Contrasts set to contr.sum for the following variables: treatment, gender
  Converting to factor: treatment
  Contrasts set to contr.sum for the following variables: treatment, gender
  Converting to factor: treatment
  Contrasts set to contr.sum for the following variables: treatment, gender
  Following objects are not identical with m1 (of class "lm"): mtcars ("data.frame")
  boundary (singular) fit: see help('isSingular')
  boundary (singular) fit: see help('isSingular')
  boundary (singular) fit: see help('isSingular')
  boundary (singular) fit: see help('isSingular')
  [ FAIL 1 | WARN 1 | SKIP 10 | PASS 2204 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (5)
  • isFALSE(run_stan) is TRUE (5)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-rlm.R:21:3): predict.rlm ────────────────────────────────────────
  Error in `match.arg(predict, choices = "expectation")`: 'arg' should be "expectation"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-rlm.R:21:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. ├─insight::get_predicted(mod, predict = "link")
   8. └─insight:::get_predicted.rlm(mod, predict = "link")
   9.   └─base::match.arg(predict, choices = "expectation")
  
  [ FAIL 1 | WARN 1 | SKIP 10 | PASS 2204 ]
  Error: Test failures
  Execution halted