Running ‘testthat.R’ [13s/49s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > library(bdl)
  > 
  > test_check("bdl")
  ── 1. Failure: Proper data (@test-requests.R#72)  ──────────────────────────────
  get_data_by_unit(...) not equal to `df`.
  Names: 6 string mismatches
  Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
  Attributes: < Component "class": 3 string mismatches >
  Component 2: Modes: character, numeric
  Component 2: target is character, current is numeric
  Component 3: Modes: numeric, character
  Component 3: target is numeric, current is character
  Component 4: Modes: numeric, character
  Component 4: target is numeric, current is character
  ...
  
  ── 2. Failure: Proper data (@test-requests.R#127)  ─────────────────────────────
  get_data_by_variable(...) not equal to `df`.
  Names: 4 string mismatches
  Component 5: Modes: character, numeric
  Component 5: target is character, current is numeric
  Component 6: 552 string mismatches
  Component 7: Modes: numeric, character
  Component 7: target is numeric, current is character
  Component 8: 552 string mismatches
  
  ── 3. Failure: Proper data (@test-requests.R#179)  ─────────────────────────────
  get_data_by_variable_locality("420", unitParentId = "070000000000") not equal to `df`.
  Names: 4 string mismatches
  Component 5: Modes: character, numeric
  Component 5: target is character, current is numeric
  Component 6: 140 string mismatches
  Component 7: Modes: numeric, character
  Component 7: target is numeric, current is character
  Component 8: 140 string mismatches
  
  ── 4. Failure: Proper data (@test-requests.R#244)  ─────────────────────────────
  get_data_by_unit_locality(unitId = "011212001011-0981682", varId = "148190") not equal to `df`.
  Names: 6 string mismatches
  Component 2: Modes: character, numeric
  Component 2: target is character, current is numeric
  Component 3: Modes: numeric, character
  Component 3: target is numeric, current is character
  Component 4: Modes: numeric, character
  Component 4: target is numeric, current is character
  Component 5: Mean relative difference: 2.2
  Component 6: Modes: character, numeric
  ...
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 34 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 4 ]
  1. Failure: Proper data (@test-requests.R#72) 
  2. Failure: Proper data (@test-requests.R#127) 
  3. Failure: Proper data (@test-requests.R#179) 
  4. Failure: Proper data (@test-requests.R#244) 
  
  Error: testthat unit tests failed
  Execution halted