Running ‘testthat.R’ [33s/58s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(restatapi)
  restatapi: - config file with the API version 1 loaded from GitHub (the 'current' API version number is 1).
             - 4 from the 32 cores are used for parallel computing.
             - 'libcurl' will be used for file download.
             - the Table of contents (TOC) was not pre-loaded into the deafult cache ('.restatapi_env').
  > 
  > test_check("restatapi")
  ── 1. Failure: test of the get_eurostat_raw/bulk/data function (@test-all.R#101)
  all.equal(bt2[time == 2008, ], dt4, check.attributes = FALSE) isn't true.
  
  ── 2. Failure: test filtering in the get_eurostat_data function (@test-all.R#149
  nc10 + 1 not equal to `nc11`.
  1/1 mismatches
  [1] 6 - 8 == -2
  
  ── 3. Failure: test filtering in the get_eurostat_data function (@test-all.R#150
  nr10 < nr11 isn't true.
  
  ── 4. Error: (unknown) (@test-all.R#160)  ──────────────────────────────────────
  Object 'OBS_FLAG' not found amongst FREQ, MILKITEM, DAIRYPROD, GEO, TIME_FORMAT and 3 more
  Backtrace:
    1. base::nrow(...)
    2. restatapi::get_eurostat_data(...)
    3. restatapi::filter_raw_data(restat_raw, ft)
    5. data.table:::`[.data.table`(...)
    6. base::tryCatch(...)
    7. base:::tryCatchList(expr, classes, parentenv, handlers)
    8. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
    9. value[[3L]](cond)
   10. data.table:::.checkTypos(e, names_x)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 46 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 4 ]
  1. Failure: test of the get_eurostat_raw/bulk/data function (@test-all.R#101) 
  2. Failure: test filtering in the get_eurostat_data function (@test-all.R#149) 
  3. Failure: test filtering in the get_eurostat_data function (@test-all.R#150) 
  4. Error: (unknown) (@test-all.R#160) 
  
  Error: testthat unit tests failed
  In addition: Warning message:
  In extract_lang(f = comp_lang, y = quote(if (.isMethodsDispatchOn() &&  :
    devtools is incompatible with the current version of R. `load_all()` may function incorrectly.
  Execution halted