Running ‘testthat.R’ [106s/128s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (require("testthat")) {
  +   library(ggeffects)
  + 
  +   if (length(strsplit(packageDescription("ggeffects")$Version, ".", fixed = TRUE)[[1]]) > 3) {
  +     Sys.setenv("RunAllggeffectsTests" = "yes")
  +   } else {
  +     Sys.setenv("RunAllggeffectsTests" = "no")
  +   }
  + 
  + 
  +   si <- Sys.info()
  + 
  +   osx <- tryCatch(
  +     {
  +       if (!is.null(si["sysname"])) {
  +         si["sysname"] == "Darwin" || startsWith(R.version$os, "darwin")
  +       } 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
  +     }
  +   )
  + 
  +   if (!osx && !solaris) {
  +     test_check("ggeffects")
  +   }
  + }
  Loading required package: testthat
  (Intercept)    tensionM    tensionH 
     36.38889   -10.00000   -14.72222 
  
  Not all rows are shown in the ouput. Use `print(..., n = Inf)` to show
    all rows.
  
  Not all rows are shown in the ouput. Use `print(..., n = Inf)` to show
    all rows.
  Data were 'prettified'. Consider using `terms="c12hour [all]"` to get
    smooth plots.
  Can't compute marginal effects, 'effects::Effect()' returned an error.
  
  Reason: NA/NaN/Inf in 'y'
  You may try 'ggpredict()' or 'ggemmeans()'.
  
  Data were 'prettified'. Consider using `terms="c12hour [all]"` to get
    smooth plots.
  The variance-covariance matrix is not positive definite. Returning the
    nearest positive definite matrix now.
    This ensures that eigenvalues are all positive real numbers, and
    thereby, for instance, it is possible to calculate standard errors for
    all relevant parameters.
  The variance-covariance matrix is not positive definite. Returning the
    nearest positive definite matrix now.
    This ensures that eigenvalues are all positive real numbers, and
    thereby, for instance, it is possible to calculate standard errors for
    all relevant parameters.
  Can't compute marginal effects, 'effects::Effect()' returned an error.
  
  Reason: Invalid operation on a survival time
  You may try 'ggpredict()' or 'ggemmeans()'.
  
  Can't compute marginal effects, 'effects::Effect()' returned an error.
  
  Reason: non-conformable arguments
  You may try 'ggpredict()' or 'ggemmeans()'.
  
  [ FAIL 4 | WARN 0 | SKIP 13 | PASS 392 ]
  
  ══ Skipped tests (13) ══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-zeroinfl.R:29:5'
  • On Linux (3): 'test-print_hypothesis_test-ordinal.R:1:1',
    'test-print_hypothesis_test.R:1:1', 'test-print_subsets.R:1:1'
  • empty test (9): 'test-plot.R:13:3', 'test-polr.R:11:3', 'test-polr.R:17:3',
    'test-polr.R:23:3', 'test-polr.R:29:3', 'test-polr.R:35:3',
    'test-polr.R:40:3', 'test-polr.R:55:3', 'test-polr.R:61:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-hypothesis_test.R:90:7'): hypothesis_test, categorical, pairwise ──
  out$Contrast (`actual`) not equal to c(...) (`expected`).
  
       actual | expected               
   [1] 0.420  - -0.205   [1]           
   [2] -0.205 - 0.067    [2]           
   [3] -0.153 - 0.420    [3]           
   [4] 0.067  - -0.153   [4]           
   [5] 0.119  | 0.119    [5]           
   [6] -0.625 - 0.272    [6]           
   [7] -0.573 - 0.625    [7]           
   [8] -0.353 - 0.052    [8]           
   [9] -0.301 - 0.324    [9]           
  [10] 0.052  - 0.353    [10]          
   ... ...      ...      and 5 more ...
  ── Failure ('test-hypothesis_test.R:99:7'): hypothesis_test, categorical, pairwise ──
  out$groups (`actual`) not identical to c(...) (`expected`).
  
       actual                | expected                          
   [1] "control-treatment"   - "control-control"   [1]           
   [2] "control-control"     | "control-control"   [2]           
   [3] "control-treatment"   | "control-treatment" [3]           
   [4] "control-control"     - "control-treatment" [4]           
   [5] "control-treatment"   | "control-treatment" [5]           
   [6] "treatment-control"   - "control-control"   [6]           
   [7] "treatment-treatment" - "control-treatment" [7]           
   [8] "treatment-control"   - "control-treatment" [8]           
   [9] "treatment-treatment" - "control-treatment" [9]           
  [10] "control-treatment"   | "control-treatment" [10]          
   ... ...                     ...                 and 5 more ...
  ── Failure ('test-hypothesis_test.R:113:7'): hypothesis_test, categorical, NULL ──
  out$Predicted (`actual`) not equal to c(0.0559, 0.2611, -0.0107, -0.364, 0.2087, -0.0628) (`expected`).
  
    `actual`: 0.056 -0.364  0.261  0.209 -0.011 -0.063
  `expected`: 0.056  0.261 -0.011 -0.364  0.209 -0.063
  ── Failure ('test-hypothesis_test.R:117:7'): hypothesis_test, categorical, NULL ──
  out$groups (`actual`) not identical to structure(...) (`expected`).
  
      actual      | expected       
  [1] "control  " | "control  " [1]
  [2] "treatment" - "control  " [2]
  [3] "control  " | "control  " [3]
  [4] "treatment" | "treatment" [4]
  [5] "control  " - "treatment" [5]
  [6] "treatment" | "treatment" [6]
  
  [ FAIL 4 | WARN 0 | SKIP 13 | PASS 392 ]
  Error: Test failures
  Execution halted