Running ‘testthat.R’ [8s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(boinet)
  > 
  > test_check("boinet")
  BOIN-ET Design Operating Characteristics
  =========================================
  
  Design Parameters:
    Target Toxicity Probability: 0.30
    Target Efficacy Probability: 0.60
    Trial Duration: 100.0 days
    Early Stop Probability: 5.0%
  
  Operating Characteristics by Dose Level:
  # A tibble: 2 x 6
    dose_level toxicity_prob efficacy_prob n_patients selection_prob selection_pct
    <chr>              <dbl>         <dbl>      <dbl>          <dbl> <chr>        
  1 1                    0.1           0.2          5             40 40%          
  2 2                    0.2           0.4          8             60 60%          
  TITE-BOIN-ET Design Operating Characteristics
  =========================================
  
  Design Parameters:
    Target Toxicity Probability: 0.30
    Target Efficacy Probability: 0.60
    Trial Duration: 100.0 days
    Early Stop Probability: 5.0%
  
  Operating Characteristics by Dose Level:
  # A tibble: 2 x 6
    dose_level toxicity_prob efficacy_prob n_patients selection_prob selection_pct
    <chr>              <dbl>         <dbl>      <dbl>          <dbl> <chr>        
  1 1                    0.1           0.2          5             40 40%          
  2 2                    0.2           0.4          8             60 60%          
  gBOIN-ET Design Operating Characteristics
  =========================================
  
  Design Parameters:
    Target Toxicity Probability: 0.30
    Target Efficacy Probability: 0.60
    Trial Duration: 100.0 days
    Early Stop Probability: 5.0%
  
  Operating Characteristics by Dose Level:
  # A tibble: 2 x 6
    dose_level toxicity_prob efficacy_prob n_patients selection_prob selection_pct
    <chr>              <dbl>         <dbl>      <dbl>          <dbl> <chr>        
  1 1                    0.1           0.2          5             40 40%          
  2 2                    0.2           0.4          8             60 60%          
  TITE-gBOIN-ET Design Operating Characteristics
  =========================================
  
  Design Parameters:
    Target Toxicity Probability: 0.30
    Target Efficacy Probability: 0.60
    Trial Duration: 100.0 days
    Early Stop Probability: 5.0%
  
  Operating Characteristics by Dose Level:
  # A tibble: 2 x 6
    dose_level toxicity_prob efficacy_prob n_patients selection_prob selection_pct
    <chr>              <dbl>         <dbl>      <dbl>          <dbl> <chr>        
  1 1                    0.1           0.2          5             40 40%          
  2 2                    0.2           0.4          8             60 60%          
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 69 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • compare_scenarios_gt function not yet implemented (1):
    'test-gt-integration.R:88:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-boinet.R:104:3'): Check boinet simulation results ────────────
  `duration` (`actual`) not identical to `duration.exp` (`expected`).
  
    `actual`: 965.80 959.40 611.20 561.60
  `expected`: 965.80 959.30 611.20 561.60
  
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 69 ]
  Error: Test failures
  Execution halted