Running ‘testthat.R’ [40s/48s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard testthat setup.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do your testing?
  > # Learn more about testing at https://r-pkgs.org/testing-basics.html
  > 
  > library(testthat)
  > library(CalibrationCurves)
  Loading required package: rms
  Loading required package: Hmisc
  
  Attaching package: 'Hmisc'
  
  The following object is masked from 'package:testthat':
  
      describe
  
  The following objects are masked from 'package:base':
  
      format.pval, units
  
  Loading required package: ggplot2
  > 
  > test_check("CalibrationCurves")
  Waiting for profiling to be done...
  Waiting for profiling to be done...
  Waiting for profiling to be done...
  Waiting for profiling to be done...
  Waiting for profiling to be done...
  Waiting for profiling to be done...
  Waiting for profiling to be done...
  Waiting for profiling to be done...
  Waiting for profiling to be done...
  Waiting for profiling to be done...
  Waiting for profiling to be done...
  Waiting for profiling to be done...
  Waiting for profiling to be done...
  Waiting for profiling to be done...
  Saving _problems/test-valProbCluster-55.R
  Saving _problems/test-valProbCluster-63.R
  [ FAIL 2 | WARN 0 | SKIP 32 | PASS 114 ]
  
  ══ Skipped tests (32) ══════════════════════════════════════════════════════════
  • On CRAN (32): 'test-print-methods.R:58:3', 'test-valProbCluster.R:20:3',
    'test-valProbCluster.R:33:3', 'test-valProbCluster.R:44:3',
    'test-valProbCluster.R:71:3', 'test-valProbCluster.R:81:3',
    'test-valProbCluster.R:95:3', 'test-valProbCluster.R:109:3',
    'test-valProbCluster.R:121:3', 'test-valProbCluster.R:134:3',
    'test-valProbCluster.R:147:3', 'test-valProbCluster.R:159:3',
    'test-valProbCluster.R:177:3', 'test-valProbCluster.R:195:3',
    'test-valProbCluster.R:207:3', 'test-valProbCluster.R:218:3',
    'test-valProbCluster.R:233:3', 'test-valProbCluster.R:243:3',
    'test-valProbCluster.R:255:3', 'test-valProbCluster.R:266:3',
    'test-valProbCluster.R:283:3', 'test-valProbCluster.R:295:3',
    'test-valProbCluster.R:306:3', 'test-valProbCluster.R:317:3',
    'test-valProbCluster.R:334:3', 'test-valProbCluster.R:345:3',
    'test-valProbCluster.R:356:3', 'test-valProbCluster.R:374:3',
    'test-valProbCluster.R:397:3', 'test-valProbCluster.R:413:3',
    'test-valProbCluster.R:440:3', 'test-valProbCluster.R:451:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-valProbCluster.R:55:3'): valProbCluster errors on non-binary y ──
  <Rcpp::exception/C++Error/error/condition>
  Error: Downdated VtV is not positive definite
  Backtrace:
       ▆
    1. └─CalibrationCurves (local) local_cluster_preds() at test-valProbCluster.R:55:3
    2.   └─lme4::glmer(...) at test-valProbCluster.R:7:3
    3.     └─lme4::optimizeGlmer(...)
    4.       └─lme4:::optwrap(...)
    5.         ├─base::withCallingHandlers(...)
    6.         ├─base::do.call(optfun, arglist)
    7.         └─lme4 (local) `<fn>`(...)
    8.           ├─nM$newf(fn(nM$xeval()))
    9.           │ └─base::stopifnot(length(value <- as.numeric(value)) == 1L)
   10.           └─lme4 (local) fn(nM$xeval())
   11.             └─lme4 (local) pwrssUpdate(...)
  ── Error ('test-valProbCluster.R:63:3'): valProbCluster errors on single cluster ──
  <Rcpp::exception/C++Error/error/condition>
  Error: Downdated VtV is not positive definite
  Backtrace:
       ▆
    1. └─CalibrationCurves (local) local_cluster_preds() at test-valProbCluster.R:63:3
    2.   └─lme4::glmer(...) at test-valProbCluster.R:7:3
    3.     └─lme4::optimizeGlmer(...)
    4.       └─lme4:::optwrap(...)
    5.         ├─base::withCallingHandlers(...)
    6.         ├─base::do.call(optfun, arglist)
    7.         └─lme4 (local) `<fn>`(...)
    8.           ├─nM$newf(fn(nM$xeval()))
    9.           │ └─base::stopifnot(length(value <- as.numeric(value)) == 1L)
   10.           └─lme4 (local) fn(nM$xeval())
   11.             └─lme4 (local) pwrssUpdate(...)
  
  [ FAIL 2 | WARN 0 | SKIP 32 | PASS 114 ]
  Error:
  ! Test failures.
  Execution halted