Running ‘testthat.R’ [82s/94s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > ## * load packages
  > library(testthat)
  > library(BuyseTest)
  Loading required package: Rcpp
  BuyseTest version 1.8.4
  > 
  > library(lava)
  
  Attaching package: 'lava'
  
  The following object is masked from 'package:BuyseTest':
  
      iid
  
  The following object is masked from 'package:testthat':
  
      compare
  
  > library(data.table)
  > library(survival)
  > 
  > ## * run tests
  > test_check("BuyseTest")
  ── 1. Error: iid with nuisance parameters: 1 TTE (@test-BuyseTest-iid.R#510)  ──
  BuyseTest: wrong specification of 'treatment'. 
  The corresponding column in 'data' must have exactly 2 levels. 
  Proposed levels : 
  Backtrace:
   1. BuyseTest::BuyseTest(...)
  
         Generalized pairwise comparisons with 2 prioritized endpoints
  
   > statistic       : win ratio (delta: endpoint specific, Delta: global) 
   > null hypothesis : Delta == 1 
   > confidence level: 0.95 
   > inference       : bootstrap resampling with 20 samples 
                       confidence intervals/p-values computed using the quantiles of the empirical distribution 
   > treatment groups: 1 (control) vs. 2 (treatment) 
   > right-censored pairs: deterministic score or uninformative
   > neutral pairs   : ignored at lower priority endpoints
   > uninformative pairs: no contribution at the current endpoint, analyzed at later endpoints
   > results
   endpoint threshold total(%) favorable(%) unfavorable(%) neutral(%) uninf(%)
       time     2e+01   100.00        34.93          44.10      15.00     5.97
      karno     1e-12    20.97         8.40           8.91       3.67     0.00
    delta  Delta p.value  CI [2.5 ; 97.5]
   0.7922 0.7922    0.80  [0.5135;1.3526]
   0.9426 0.8175    0.75  [0.5639;1.3333]
           Simulation study with BuyseTest 
  
  Settings 
     - 2 groups  : Control = 0 and Treatment = 1
     - 1 endpoint: 
         priority endpoint type        operator             threshold
         1        Y        continuous  higher is favorable  1e-12    
  Estimation of the estimator's distribution 
     - method: moments of the U-statistic
  Simulation
     - sample size: 100 (control)
                  : 100 (treatment)
     - repetitions: 2
     - cpus       : 1
   
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 785 | SKIPPED: 4 | WARNINGS: 1 | FAILED: 1 ]
  1. Error: iid with nuisance parameters: 1 TTE (@test-BuyseTest-iid.R#510) 
  
  Error: testthat unit tests failed
  Execution halted