Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [23s/35s]
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")
  +   # }
  + 
  +   test_check("insight")
  + }
  Loading required package: testthat
  [ FAIL 1 | WARN 0 | SKIP 55 | PASS 1042 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • AER cannot be loaded (2)
  • BayesFactor cannot be loaded (1)
  • MCMCglmm cannot be loaded (1)
  • afex cannot be loaded (1)
  • betareg cannot be loaded (1)
  • blme cannot be loaded (1)
  • censReg cannot be loaded (1)
  • cgam cannot be loaded (1)
  • cplm cannot be loaded (1)
  • epiR cannot be loaded (1)
  • gamlss cannot be loaded (1)
  • gamm4 cannot be loaded (3)
  • glmmTMB cannot be loaded (2)
  • gmnl cannot be loaded (1)
  • ivreg cannot be loaded (1)
  • lfe cannot be loaded (1)
  • lme4 cannot be loaded (16)
  • lmtest cannot be loaded (1)
  • mlogit cannot be loaded (1)
  • multgee cannot be loaded (1)
  • panelr cannot be loaded (1)
  • plm cannot be loaded (1)
  • quantreg cannot be loaded (3)
  • rms cannot be loaded (3)
  • speedglm cannot be loaded (2)
  • survey cannot be loaded (1)
  • truncreg cannot be loaded (1)
  • works interactively (4)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-coxph.R:131:3): JM ──────────────────────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'JM'
  Backtrace:
      ▆
   1. └─utils::data("aids", package = "JM") at test-coxph.R:131:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  
  [ FAIL 1 | WARN 0 | SKIP 55 | PASS 1042 ]
  Error: Test failures
  Execution halted