Running ‘spelling.R’
  Running ‘testthat.R’ [67s/73s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > library("papaja")
  Loading required package: tinylabels
  > 
  > test_check("papaja")
  Error in validObject(.Object) : 
    invalid class "dsparseModelMatrix" object: superclass "xMatrix" not defined in the environment of the object's class
  Error in validObject(.Object) : 
    invalid class "dsparseModelMatrix" object: superclass "xMatrix" not defined in the environment of the object's class
  Error in validObject(.Object) : 
    invalid class "dsparseModelMatrix" object: superclass "xMatrix" not defined in the environment of the object's class
  Error in validObject(.Object) : 
    invalid class "dsparseModelMatrix" object: superclass "xMatrix" not defined in the environment of the object's class
  Error in validObject(.Object) : 
    invalid class "dsparseModelMatrix" object: superclass "xMatrix" not defined in the environment of the object's class
  Error in validObject(.Object) : 
    invalid class "ddenseModelMatrix" object: superclass "xMatrix" not defined in the environment of the object's class
  Error in validObject(.Object) : 
    invalid class "ddenseModelMatrix" object: superclass "xMatrix" not defined in the environment of the object's class
  Error in validObject(.Object) : 
    invalid class "dsparseModelMatrix" object: superclass "xMatrix" not defined in the environment of the object's class
  Error in validObject(.Object) : 
    invalid class "dsparseModelMatrix" object: superclass "xMatrix" not defined in the environment of the object's class
  Error in validObject(.Object) : 
    invalid class "dsparseModelMatrix" object: superclass "xMatrix" not defined in the environment of the object's class
  Error in validObject(.Object) : 
    invalid class "dsparseModelMatrix" object: superclass "xMatrix" not defined in the environment of the object's class
  [ FAIL 9 | WARN 0 | SKIP 10 | PASS 2303 ]
  
  ══ Skipped tests (10) ══════════════════════════════════════════════════════════
  • On CRAN (7): 'test-generate_author_yml.R:18:5',
    'test_apa_print_merMod.R:6:5', 'test_apa_print_merMod.R:117:5',
    'test_apa_print_model_comp.R:83:5', 'test_apa_table.R:19:5',
    'test_custom_effect_sizes.R:109:5', 'test_skeleton.R:4:5'
  • Structure of glht output not decided, yet. (2): 'test_apa_print_glht.R:7:5',
    'test_apa_print_glht.R:36:5'
  • emtrends() is not yet supported. (1): 'test_apa_print_emm_lsm.R:936:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_apa_print_BFBayesFactor.R:339:5'): anovaBF() ───────────────────
  Error in `if (scientific) {
      args_stat$format <- "e"
      if (is.null(args_stat$digits)) 
          args_stat$digits <- 2
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─papaja::apa_print(anova_bf_main) at test_apa_print_BFBayesFactor.R:339:5
   2. └─papaja:::apa_print.BFBayesFactor(anova_bf_main)
  ── Error ('test_apa_print_BFBayesFactor.R:511:5'): lmBF() ──────────────────────
  Error in `if (scientific) {
      args_stat$format <- "e"
      if (is.null(args_stat$digits)) 
          args_stat$digits <- 2
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─testthat::expect_identical(apa_print(bf_full)$statistic, "$\\mathrm{BF}_{\\textrm{10}} = 3,421.93$") at test_apa_print_BFBayesFactor.R:511:5
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─papaja::apa_print(bf_full)
   5. └─papaja:::apa_print.BFBayesFactor(bf_full)
  ── Error ('test_apa_print_BFBayesFactor.R:548:5'): generalTestBF() ─────────────
  Error in `if (scientific) {
      args_stat$format <- "e"
      if (is.null(args_stat$digits)) 
          args_stat$digits <- 2
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─papaja::apa_print(bf) at test_apa_print_BFBayesFactor.R:548:5
   2. └─papaja:::apa_print.BFBayesFactor(bf)
  ── Failure ('test_apa_print_glm.R:43:5'): Linear regression: lm()-fit ──────────
  lm_fit_output$est$modelfit$r2 not identical to "$R^2 = .07$, 90\\% CI $[0.00, 0.33]$".
  1/1 mismatches
  x[1]: "$R^2 = .07$"
  y[1]: "$R^2 = .07$, 90\\% CI $[0.00, 0.33]$"
  ── Failure ('test_apa_print_glm.R:56:5'): Linear regression: lm()-fit ──────────
  lm_fit_output$full$modelfit$r2 not identical to "$R^2 = .07$, 90\\% CI $[0.00, 0.33]$, $F(1, 18) = 1.42$, $p = .249$".
  1/1 mismatches
  x[1]: "$R^2 = .07$, $F(1, 18) = 1.42$, $p = .249$"
  y[1]: "$R^2 = .07$, 90\\% CI $[0.00, 0.33]$, $F(1, 18) = 1.42$, $p = .249$"
  ── Failure ('test_apa_print_glm.R:65:5'): Linear regression: lm()-fit ──────────
  lm_fit_output$full$modelfit$r2 not identical to "$R^2 = .07$, 90\\% CI $[0.00, 0.33]$, $F(1, 18) = 1.42$, $p = .249$".
  1/1 mismatches
  x[1]: "$R^2 = .07$, $F(1, 18) = 1.42$, $p = .249$"
  y[1]: "$R^2 = .07$, 90\\% CI $[0.00, 0.33]$, $F(1, 18) = 1.42$, $p = .249$"
  ── Failure ('test_apa_print_model_comp.R:56:5'): Linear regression ─────────────
  model_comp$table$Baseline not identical to correct_table$Baseline.
  1/18 mismatches
  x[5]: ".01"
  y[5]: ".01 [0.00, 0.06]"
  ── Failure ('test_apa_print_model_comp.R:57:5'): Linear regression ─────────────
  model_comp$table$Length not identical to correct_table$Length.
  1/18 mismatches
  x[5]: ".84"
  y[5]: ".84 [0.79, 0.87]"
  ── Failure ('test_apa_print_model_comp.R:58:5'): Linear regression ─────────────
  model_comp$table$Both not identical to correct_table$Both.
  1/18 mismatches
  x[5]: ".86"
  y[5]: ".86 [0.82, 0.89]"
  
  [ FAIL 9 | WARN 0 | SKIP 10 | PASS 2303 ]
  Error: Test failures
  Execution halted