Running ‘test-package-load.R’ [2s/2s]
  Running ‘testthat.R’ [63s/70s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > pkg_name <- "crmPack"
  > library(pkg_name, character.only = TRUE)
  Loading required package: ggplot2
  Registered S3 method overwritten by 'crmPack':
    method       from  
    print.gtable gtable
  Type crmPackHelp() to open help browser
  Type crmPackExample() to open example
  
  > testthat::test_check(pkg_name)
  Used default patient IDs!
  Used default patient IDs!
  Used default patient IDs!
  Used default patient IDs!
  Used default patient IDs!
  Used default patient IDs!
  Used default patient IDs!
  Used default patient IDs!
  Used default patient IDs!
  Used default patient IDs!
  Used default patient IDs!
  Used default patient IDs!
  Saving _problems/test-Rules-class-1099.R
  Saving _problems/test-Rules-class-1195.R
  Saving _problems/test-Rules-class-1343.R
  NULL
  [ FAIL 3 | WARN 10 | SKIP 123 | PASS 3732 ]
  
  ══ Skipped tests (123) ═════════════════════════════════════════════════════════
  • On CRAN (106): 'test-Data-methods.R:3:1', 'test-Data-methods.R:10:1',
    'test-Data-methods.R:17:1', 'test-Data-methods.R:27:1',
    'test-Data-methods.R:39:1', 'test-Data-methods.R:46:1',
    'test-Data-methods.R:58:1', 'test-Data-methods.R:65:1',
    'test-Data-methods.R:77:1', 'test-Data-methods.R:84:1',
    'test-Data-methods.R:91:1', 'test-Model-class.R:81:1',
    'test-Model-class.R:90:1', 'test-Model-class.R:127:1',
    'test-Model-class.R:136:1', 'test-Model-class.R:173:1',
    'test-Model-class.R:182:1', 'test-Model-class.R:219:1',
    'test-Model-class.R:228:1', 'test-Model-class.R:264:1',
    'test-Model-class.R:273:1', 'test-Model-class.R:306:1',
    'test-Model-class.R:315:1', 'test-Model-class.R:348:1',
    'test-Model-class.R:357:1', 'test-Model-class.R:402:1',
    'test-Model-class.R:411:1', 'test-Model-class.R:456:1',
    'test-Model-class.R:465:1', 'test-Model-class.R:520:1',
    'test-Model-class.R:536:1', 'test-Model-class.R:583:1',
    'test-Model-class.R:592:1', 'test-Model-class.R:645:1',
    'test-Model-class.R:661:1', 'test-Model-class.R:677:1',
    'test-Model-class.R:693:1', 'test-Model-class.R:713:1',
    'test-Model-class.R:729:1', 'test-Model-class.R:745:1',
    'test-Model-class.R:761:1', 'test-Model-class.R:852:1',
    'test-Model-class.R:868:1', 'test-Model-class.R:907:1',
    'test-Model-class.R:923:1', 'test-Model-class.R:971:1',
    'test-Model-class.R:987:1', 'test-Model-class.R:1003:1',
    'test-Model-class.R:1019:1', 'test-Model-class.R:1062:1',
    'test-Model-class.R:1071:1', 'test-Model-class.R:1096:1',
    'test-Model-class.R:1105:1', 'test-Model-class.R:1140:1',
    'test-Model-class.R:1148:1', 'test-Model-class.R:1156:1',
    'test-Model-class.R:1164:1', 'test-Model-class.R:1217:1',
    'test-Model-class.R:1226:1', 'test-Model-class.R:1263:1',
    'test-Model-class.R:1272:1', 'test-Model-class.R:1281:1',
    'test-Model-class.R:1290:1', 'test-Model-class.R:1299:1',
    'test-Model-class.R:1308:1', 'test-Model-class.R:1404:1',
    'test-Model-class.R:1413:1', 'test-Model-class.R:1528:1',
    'test-Model-class.R:1537:1', 'test-Model-class.R:1593:1',
    'test-Model-class.R:1602:1', 'test-Model-methods.R:2493:1',
    'test-Model-methods.R:2501:1', 'test-Model-validity.R:126:1',
    'test-Model-validity.R:223:1', 'test-Model-validity.R:314:1',
    'test-Model-validity.R:425:1', 'test-Model-validity.R:433:1',
    'test-Model-validity.R:442:1', 'test-Model-validity.R:463:1',
    'test-Model-validity.R:473:1', 'test-Model-validity.R:493:1',
    'test-Model-validity.R:507:1', 'test-Model-validity.R:840:1',
    'test-Model-validity.R:858:1', 'test-helpers-simulations.R:1:1',
    'test-helpers.R:69:1', 'test-helpers.R:81:1', 'test-helpers.R:96:1',
    'test-helpers.R:835:1', 'test-helpers.R:843:1', 'test-helpers_data.R:1:1',
    'test-helpers_jags.R:236:1', 'test-helpers_jags.R:247:1',
    'test-helpers_knitr_NextBest.R:318:1', 'test-helpers_rules.R:250:1',
    'test-helpers_rules.R:297:1', 'test-helpers_rules.R:359:1',
    'test-helpers_rules.R:402:1', 'test-helpers_rules.R:418:1',
    'test-helpers_rules.R:436:1', 'test-helpers_rules.R:456:1',
    'test-helpers_rules.R:478:1', 'test-helpers_rules.R:499:1',
    'test-helpers_rules.R:522:1', 'test-helpers_rules.R:537:1'
  • On CRAN, but not on CI (17): 'test-Design-methods.R:1:1',
    'test-Rules-methods.R:1:1', 'test-Samples-methods.R:1:1',
    'test-Simulations-methods.R:1:1', 'test-fromQuantiles.R:128:3',
    'test-fromQuantiles.R:174:3', 'test-fromQuantiles.R:199:3',
    'test-fromQuantiles.R:219:3', 'test-helpers_knitr.R:1:1',
    'test-sas-results-part-1.R:4:3', 'test-sas-results-part-1.R:100:3',
    'test-sas-results-part-1.R:196:3', 'test-sas-results-part-1.R:302:3',
    'test-sas-results-part-2.R:4:3', 'test-sas-results-part-2.R:127:3',
    'test-sas-results-part-2.R:250:3', 'test-sas-results-part-2.R:373:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-Rules-class.R:1097:3'): StoppingList object can be created with user constructor ──
  Error in `file(file, if (append) "a" else "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─testthat::expect_silent(StoppingList(stop_list = stop_list, summary = all)) at test-Rules-class.R:1097:3
   2.   └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
   3.     └─testthat (local) .capture(...)
   4.       └─withr::with_output_sink(...)
   5.         └─withr:::set_output_sink(file = new, append = append, split = split)
   6.           └─withr:::output_sink(file = file, append = append, split = split)
   7.             └─base::sink(file = file, append = append, type = "output", split = split)
   8.               └─base::file(file, if (append) "a" else "w")
  ── Error ('test-Rules-class.R:1195:3'): StoppingTDCIRatio replaces empty label with correct default label ──
  Error in `file(file, if (append) "a" else "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─testthat::expect_silent(StoppingTDCIRatio(6, 0.5, character(0))) at test-Rules-class.R:1195:3
   2.   └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
   3.     └─testthat (local) .capture(...)
   4.       └─withr::with_output_sink(...)
   5.         └─withr:::set_output_sink(file = new, append = append, split = split)
   6.           └─withr:::output_sink(file = file, append = append, split = split)
   7.             └─base::sink(file = file, append = append, type = "output", split = split)
   8.               └─base::file(file, if (append) "a" else "w")
  ── Error ('test-Rules-class.R:1343:3'): .CohortSizeConst works as expected ─────
  Error in `file(file, if (append) "a" else "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─testthat::expect_silent(.CohortSizeConst()) at test-Rules-class.R:1343:3
   2.   └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
   3.     └─testthat (local) .capture(...)
   4.       └─withr::with_output_sink(...)
   5.         └─withr:::set_output_sink(file = new, append = append, split = split)
   6.           └─withr:::output_sink(file = file, append = append, split = split)
   7.             └─base::sink(file = file, append = append, type = "output", split = split)
   8.               └─base::file(file, if (append) "a" else "w")
  
  [ FAIL 3 | WARN 10 | SKIP 123 | PASS 3732 ]
  Error:
  ! Test failures.
  Execution halted