Running ‘testthat.R’ [3s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(eurostat)
  > 
  > test_check("eurostat")
  ── Skip (test_bibliography.R:6:3): Bibentry gives correct results ──────────────
  Reason: On CRAN
  
  ── Skip (test_cache.R:4:3): Cache give error if cache dir does not exist ───────
  Reason: On CRAN
  
  ── Skip (test_cache.R:10:3): Cache works ───────────────────────────────────────
  Reason: On CRAN
  
  trying URL 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?sort=1&file=data%2Froad_pa_buscoa.tsv.gz'
  Content type 'text/html' length 22931 bytes (22 KB)
  ==================================================
  downloaded 22 KB
  
  ── Warning (test_flags.R:5:1): (code run outside of `test_that()`) ─────────────
  494 parsing failures.
  row              col           expected actual         file
   22 <html lang="en"> delimiter or quote      : <connection>
   22 <html lang="en"> delimiter or quote      p <connection>
   22 <html lang="en"> delimiter or quote      , <connection>
   22 <html lang="en"> delimiter or quote      s <connection>
   22 <html lang="en"> delimiter or quote      : <connection>
  ... ................ .................. ...... ............
  See problems(...) for more details.
  
  
  Error in get_eurostat_raw(id) : 
    Could not download  road_pa_buscoa . Some datasets (for instance the comext type) are not accessible via the eurostat interface. You can try to search the data manually from the comext database at http://epp.eurostat.ec.europa.eu/newxtweb/ or bulk download facility at http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing or annual Excel files http://ec.europa.eu/eurostat/web/prodcom/data/excel-files-nace-rev.2
  ── ERROR (test_flags.R:5:1): (code run outside of `test_that()`) ───────────────
  Error: get_eurostat_raw fails with the id road_pa_buscoa
  Backtrace:
      █
   1. └─eurostat::get_eurostat(...) test_flags.R:5:0
  
  ── Skip (test_get.R:4:3): get_eurostat includes time and value ─────────────────
  Reason: On CRAN
  
  ── Skip (test_get.R:10:3): get_eurostat works with multi-frequency ─────────────
  Reason: On CRAN
  
  ── Skip (test_get.R:17:3): get_eurostat return right classes ───────────────────
  Reason: On CRAN
  
  ── Skip (test_get.R:27:3): get_eurostat handles daily data ─────────────────────
  Reason: On CRAN
  
  ── Skip (test_get.R:38:3): get_eurostat get non-normal variable order ──────────
  Reason: On CRAN
  
  ── Skip (test_json.R:4:3): Get json data ───────────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test_json.R:14:3): Handle numbers in filter name ──────────────────────
  Reason: On CRAN
  
  ── Skip (test_label.R:4:3): Variable names are labeled ─────────────────────────
  Reason: On CRAN
  
  ── Skip (test_label.R:14:3): Label ordering is ordered ─────────────────────────
  Reason: On CRAN
  
  ── Skip (test_label.R:23:3): Countrycodes are labelled for factors ─────────────
  Reason: On CRAN
  
  ── Skip (test_label.R:30:3): Countrycodes return NA for countrycode_nomatch = NA
  Reason: On CRAN
  
  ── Skip (test_label.R:37:3): Countrycodes use eurostat for missing ─────────────
  Reason: On CRAN
  
  ── Skip (test_label.R:44:3): custom_dic works ──────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test_misc.R:4:3): Dic downloading works ───────────────────────────────
  Reason: On CRAN
  
  ── Skip (test_misc.R:9:3): Factors are retained in data.frame ──────────────────
  Reason: On CRAN
  
  ── Skip (test_misc.R:15:3): Duplicated gives an error ──────────────────────────
  Reason: On CRAN
  
  ── Skip (test_misc.R:20:3): Duplicated with fix_duplicated does not give an erro
  Reason: On CRAN
  
  ── Skip (test_regional.R:20:3): Recoding gives correct results ─────────────────
  Reason: On CRAN
  
  ── Skip (test_search.R:4:3): search_eurostat finds ─────────────────────────────
  Reason: On CRAN
  
  ── Skipped tests  ──────────────────────────────────────────────────────────────
  ● On CRAN (22)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  Warning (test_flags.R:5:1): (code run outside of `test_that()`)
  ERROR (test_flags.R:5:1): (code run outside of `test_that()`)
  
  [ FAIL 1 | WARN 1 | SKIP 22 | PASS 0 ]
  Error: Test failures
  Execution halted