Running 'testthat.R' [89s/100s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(heemod)
  > 
  > ## the Sys.setenv fixes a problem running tests
  > ##   with parallel processing; related to
  > ##   https://github.com/hadley/testthat/issues/86 and
  > ##   https://github.com/hadley/testthat/issues/144
  > 
  > Sys.setenv("R_TESTS" = "")
  > test_check("heemod")
  A transition matrix, 5 states.
  
                     PrimaryTHR SuccessfulPrimary RevisionTHR    
  PrimaryTHR                    C                                
  SuccessfulPrimary             C                 pHRFailStandard
  RevisionTHR                                                    
  SuccessfulRevision                              0.04           
  Death                                                          
                     SuccessfulRevision Death
  PrimaryTHR                            0.02 
  SuccessfulPrimary                     mr   
  RevisionTHR        C                  0.02 
  SuccessfulRevision C                  mr   
  Death                                 1    
  A list of 5 states with 2 values each.
  
  State names:
  
  PrimaryTHR
  SuccessfulPrimary
  RevisionTHR
  SuccessfulRevision
  Death
  
  State values:
  
  cost
  qaly
  A transition matrix, 5 states.
  
                     PrimaryTHR SuccessfulPrimary RevisionTHR    
  PrimaryTHR                    C                                
  SuccessfulPrimary             C                 pHRFailStandard
  RevisionTHR                                                    
  SuccessfulRevision                              0.04           
  Death                                                          
                     SuccessfulRevision Death    
  PrimaryTHR                            0.02     
  SuccessfulPrimary                     mr       
  RevisionTHR        C                  0.02 + mr
  SuccessfulRevision C                  mr       
  Death                                 1        
  A list of 5 states with 2 values each.
  
  State names:
  
  PrimaryTHR
  SuccessfulPrimary
  RevisionTHR
  SuccessfulRevision
  Death
  
  State values:
  
  cost
  qaly
  A transition matrix, 5 states.
  
                     PrimaryTHR SuccessfulPrimary RevisionTHR SuccessfulRevision
  PrimaryTHR                    C                                               
  SuccessfulPrimary             C                 pHRFailNew                    
  RevisionTHR                                                 C                 
  SuccessfulRevision                              0.04        C                 
  Death                                                                         
                     Death    
  PrimaryTHR         0.02     
  SuccessfulPrimary  mr       
  RevisionTHR        0.02 + mr
  SuccessfulRevision mr       
  Death              1        
  == Failed tests ================================================================
  -- Error (test_parallel.R:7:5): Same results using 1 core or 2. ----------------
  Error: argument to 'which' is not logical
  Backtrace:
      x
   1. \-heemod::run_model_tabular(...) test_parallel.R:7:4
   2.   \-heemod:::gather_model_info(location, reference)
   3.     \-heemod:::create_df_from_tabular(...)
   4.       \-base::which(...)
  -- Error (test_tabular_input.R:470:5): problems with output generate warnings --
  Error: argument to 'which' is not logical
  Backtrace:
      x
   1. +-testthat::expect_warning(...) test_tabular_input.R:470:4
   2. | \-testthat:::quasi_capture(enquo(object), label, capture_warnings)
   3. |   +-testthat:::.capture(...)
   4. |   | \-base::withCallingHandlers(...)
   5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. \-heemod::run_model_tabular(...)
   7.   \-heemod:::gather_model_info(location, reference)
   8.     \-heemod:::create_df_from_tabular(...)
   9.       \-base::which(...)
  -- Error (test_tabular_input.R:506:5): absolute path works ---------------------
  Error: argument to 'which' is not logical
  Backtrace:
       x
    1. +-testthat::expect_message(...) test_tabular_input.R:506:4
    2. | \-testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. |   +-testthat:::.capture(...)
    4. |   | \-base::withCallingHandlers(...)
    5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. +-utils::capture.output(heemod:::gather_model_info(testdir, "edited_ref.csv"))
    7. | \-base::withVisible(...elt(i))
    8. \-heemod:::gather_model_info(testdir, "edited_ref.csv")
    9.   \-heemod:::create_df_from_tabular(...)
   10.     \-base::which(...)
  -- Error (test_tabular_input.R:772:5): Running model from files works. ---------
  Error: argument to 'which' is not logical
  Backtrace:
      x
   1. \-heemod::run_model_tabular(...) test_tabular_input.R:772:4
   2.   \-heemod:::gather_model_info(location, reference)
   3.     \-heemod:::create_df_from_tabular(...)
   4.       \-base::which(...)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 497 ]
  Error: Test failures
  Execution halted