Running ‘testthat.R’ [52s/84s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(admiral)
  > 
  > test_check("admiral")
  [1] "N" "Y" NA 
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 496 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-derive_vars_duration.R:26:3): derive_vars_duration Test 1: Duration and unit variable are added ──
  Differences found between the objects!
  
  A summary is given below.
  
  Not all Values Compared Equal
  All rows are shown in table below
  
    =============================
     Variable  No of Differences 
    -----------------------------
       AGE             3         
       AGEU            3         
    -----------------------------
  
  
  All rows are shown in table below
  
    ==================================
     VARIABLE  USUBJID  BASE  COMPARE 
    ----------------------------------
       AGE       P02    -15    <NA>   
       AGE       P03     51    <NA>   
       AGE       P04      0    <NA>   
    ----------------------------------
  
  
  All rows are shown in table below
  
    ===================================
     VARIABLE  USUBJID  BASE   COMPARE 
    -----------------------------------
       AGEU      P02    YEARS   <NA>   
       AGEU      P03    YEARS   <NA>   
       AGEU      P04    YEARS   <NA>   
    -----------------------------------
  
  ── Failure (test-derive_vars_duration.R:51:3): derive_vars_duration Test 2: Duration and unit variable are added ──
  Differences found between the objects!
  
  A summary is given below.
  
  Not all Values Compared Equal
  All rows are shown in table below
  
    =============================
     Variable  No of Differences 
    -----------------------------
      ADURN            2         
      ADURU            2         
    -----------------------------
  
  
  All rows are shown in table below
  
    ===================================
     VARIABLE  USUBJID  BASE   COMPARE 
    -----------------------------------
      ADURN      P03    -5479   <NA>   
      ADURN      P04        1   <NA>   
    -----------------------------------
  
  
  All rows are shown in table below
  
    ==================================
     VARIABLE  USUBJID  BASE  COMPARE 
    ----------------------------------
      ADURU      P03    DAYS   <NA>   
      ADURU      P04    DAYS   <NA>   
    ----------------------------------
  
  
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 496 ]
  Error: Test failures
  Execution halted