Running ‘testthat.R’ [4s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(idmodelr)
  > 
  > test_check("idmodelr")
  ── 1. Failure: Holding out of time works as expected (@test-combine_to_age_model
  `df_age` not equal to combine_to_age_model(df, age_com = 2, hold_out_var = "time").
  Names: 3 string mismatches
  Component 1: Mean relative difference: 1.666667
  Component 2: Mean relative difference: 0.625
  Component 3: Mean relative difference: 0.7272727
  
  ── 2. Failure: Specifying compartments, automatically specifies hold out variabl
  `df_age` not equal to combine_to_age_model(df, age_com = 2, compartments = c("S", "E")).
  Names: 3 string mismatches
  Component 1: Mean relative difference: 1.666667
  Component 2: Mean relative difference: 0.625
  Component 3: Mean relative difference: 0.7272727
  
  ── 3. Failure: Specifying hold out variables, automatically specifies compartmen
  `df_age` not equal to combine_to_age_model(df, age_com = 2, hold_out_var = "time").
  Names: 3 string mismatches
  Component 1: Mean relative difference: 1.666667
  Component 2: Mean relative difference: 0.625
  Component 3: Mean relative difference: 0.7272727
  
  ── 4. Failure: generate_parameter_permutations can use a single parameter sample
  `df_results` not equal to `df_check`.
  Names: 2 string mismatches
  Component 3: Mean absolute difference: 1
  Component 4: Mean relative difference: 1
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 48 | SKIPPED: 41 | WARNINGS: 0 | FAILED: 4 ]
  1. Failure: Holding out of time works as expected (@test-combine_to_age_model.R#25) 
  2. Failure: Specifying compartments, automatically specifies hold out variables (@test-combine_to_age_model.R#31) 
  3. Failure: Specifying hold out variables, automatically specifies compartments (@test-combine_to_age_model.R#37) 
  4. Failure: generate_parameter_permutations can use a single parameter sample (@test-generate_parameter_permutations.R#26) 
  
  Error: testthat unit tests failed
  Execution halted