Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(readsdr)
  > 
  > test_check("readsdr")
  == Warnings ====================================================================
  -- Warning (test-simulators.R:146:3): sd_sensitivity_run() works with several cores --
  This function does not suppport parallelisation in WindowsFALSE
  Backtrace:
   1. readsdr::sd_sensitivity_run(...) test-simulators.R:146:2
   2. readsdr:::const_sensitivity(...)
   3. readsdr:::check_win()
  -- Warning (test-simulators.R:152:3): sd_sensitivity_run() works with several cores --
  This function does not suppport parallelisation in WindowsFALSE
  Backtrace:
   1. readsdr::sd_sensitivity_run(...) test-simulators.R:152:2
   2. readsdr:::stock_sensitivity(...)
   3. readsdr:::check_win()
  -- Warning (test-simulators.R:159:3): sd_sensitivity_run() works with several cores --
  This function does not suppport parallelisation in WindowsFALSE
  Backtrace:
   1. readsdr::sd_sensitivity_run(...) test-simulators.R:159:2
   2. readsdr:::const_stock_sensitivity(...)
   3. readsdr:::check_win()
  
  == Failed tests ================================================================
  -- Failure (test-read_xmile.R:99:3): read_xmile() works for a model that has a NOT statement
  from Stella --
  `actual_val` not equal to `expected_val`.
  1/1 mismatches
  [1] 1.25 - 125 == -124
  -- Failure (test-stan_utils.R:20:3): extract_timeseries_var() returns the expected data frame --
  extract_timeseries_var("var", test_df) not equal to `expected_df`.
  Component "variable": Modes: character, numeric
  Component "variable": Attributes: < target is NULL, current is list >
  Component "variable": target is character, current is factor
  -- Failure (test-stan_utils.R:36:3): extract_timeseries_stock() returns the expected data frame --
  extract_timeseries_stock("S2", test_df, test_stocks, "yhat") not equal to `expected_df`.
  Component "stock": Modes: character, numeric
  Component "stock": Attributes: < target is NULL, current is list >
  Component "stock": target is character, current is factor
  -- Failure (test-summaries.R:24:3): sd_stocks() returns the expected data frame --
  sd_stocks(mdl) not equal to data.frame(...).
  Component "name": Attributes: < Component "levels": 2 string mismatches >
  -- Failure (test-xml_model_components.R:91:3): create_level_obj_xmile() returns the expected object --
  `actual_val` not equal to `expected_val`.
  Component "name": 'current' is not a factor
  Component "equation": 'current' is not a factor
  Component "initValue": Mean relative difference: 99
  -- Failure (test-xml_model_components.R:118:3): create_level_obj_xmile() deals with levels with no flows --
  `actual_obj` not equal to `expected_obj`.
  Component "name": 'current' is not a factor
  Component "equation": 'current' is not a factor
  Component "initValue": Mean relative difference: 99
  -- Failure (test-xml_model_components.R:159:3): create_level_obj_xmile() works should levels depend on other levels in init values --
  `actual_obj` not equal to `expected_obj`.
  Component 1: Component 1: 'current' is not a factor
  Component 1: Component 2: 'current' is not a factor
  Component 1: Component 3: Mean relative difference: 24
  Component 2: Component 1: 'current' is not a factor
  Component 2: Component 2: 'current' is not a factor
  Component 2: Component 3: Mean relative difference: 99
  Component 3: Component 1: 'current' is not a factor
  Component 3: Component 2: 'current' is not a factor
  Component 3: Component 3: Mean relative difference: 49
  -- Failure (test-xml_model_components.R:195:3): create_level_obj_xmile() returns the expected object in the presence of multiple outflows --
  `actual_val` not equal to `expected_val`.
  Component "name": 'current' is not a factor
  Component "equation": 'current' is not a factor
  Component "initValue": Mean relative difference: 99
  -- Failure (test-xml_model_components.R:231:3): create_level_obj_xmile() returns the expected object in the presence of multiple inflows --
  `actual_val` not equal to `expected_val`.
  Component "name": 'current' is not a factor
  Component "equation": 'current' is not a factor
  Component "initValue": Mean relative difference: 99
  -- Failure (test-xml_model_components.R:332:3): create_level_obj_xmile() handles stock vectors --
  `actual_obj` not equal to `expected_obj`.
  Component 1: Component 1: 'current' is not a factor
  Component 1: Component 2: 'current' is not a factor
  Component 1: Component 3: Mean relative difference: 99
  Component 2: Component 1: 'current' is not a factor
  Component 2: Component 2: 'current' is not a factor
  Component 2: Component 3: Mean relative difference: 99
  -- Failure (test-xml_model_components.R:342:3): extract_stock_info() handles a stock vector --
  `actual_obj` not equal to `expected_obj`.
  Component 1: Component 1: 'current' is not a factor
  Component 1: Component 2: 'current' is not a factor
  Component 1: Component 3: 'current' is not a factor
  Component 2: Component 1: 'current' is not a factor
  Component 2: Component 2: 'current' is not a factor
  Component 2: Component 3: 'current' is not a factor
  -- Failure (test-xml_model_components.R:374:3): extract_stock_info() handles vector stock with a unique initialisation --
  `actual_obj` not equal to `expected_obj`.
  Component 1: Component 1: 'current' is not a factor
  Component 1: Component 2: 'current' is not a factor
  Component 1: Component 3: 'current' is not a factor
  Component 2: Component 1: 'current' is not a factor
  Component 2: Component 2: 'current' is not a factor
  Component 2: Component 3: 'current' is not a factor
  Component 3: Component 1: 'current' is not a factor
  Component 3: Component 2: 'current' is not a factor
  Component 3: Component 3: 'current' is not a factor
  ...
  
  [ FAIL 12 | WARN 3 | SKIP 0 | PASS 241 ]
  Error: Test failures
  Execution halted