Running ‘testthat.R’ [178s/503s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(restatapi)
  restatapi: The 'current' API version number is 1. Loaded config file with the API version number 1
             15 from the 16 cores are used for parallel computing.
  
  > 
  > test_check("restatapi")
  trying URL 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?sort=1&file=table_of_contents_en.txt'
  Content type 'application/octet-stream;charset=UTF-8' length 1452316 bytes (1.4 MB)
  ==================================================
  downloaded 1.4 MB
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/htec_cis3.sdmx.zip'
  Content type 'application/octet-stream;charset=UTF-8' length 13127 bytes (12 KB)
  ==================================================
  downloaded 12 KB
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/agr_r_milkpr.sdmx.zip'
  Content type 'application/octet-stream;charset=UTF-8' length 74683 bytes (72 KB)
  ==================================================
  downloaded 72 KB
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/avia_par_me.sdmx.zip'
  Content type 'application/octet-stream;charset=UTF-8' length 90774 bytes (88 KB)
  ==================================================
  downloaded 88 KB
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/agr_r_milkpr.sdmx.zip'
  Content type 'application/octet-stream;charset=UTF-8' length 74683 bytes (72 KB)
  ==================================================
  downloaded 72 KB
  
  ── 1. Failure: test filtering in the get_eurostat_data function (@test-all.R#158
  `nr14` not equal to 4860.
  1/1 mismatches
  [1] 5040 - 4860 == 180
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/avia_par_me.sdmx.zip'
  Content type 'application/octet-stream;charset=UTF-8' length 90774 bytes (88 KB)
  ==================================================
  downloaded 88 KB
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/ei_bsfs_q.sdmx.zip'
  Content type 'application/octet-stream;charset=UTF-8' length 39856 bytes (38 KB)
  ==================================================
  downloaded 38 KB
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/ei_bsfs_q.sdmx.zip'
  Content type 'application/octet-stream;charset=UTF-8' length 39856 bytes (38 KB)
  ==================================================
  downloaded 38 KB
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/avia_par_mk.sdmx.zip'
  Content type 'application/octet-stream;charset=UTF-8' length 95835 bytes (93 KB)
  ==================================================
  downloaded 93 KB
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/avia_par_mk.sdmx.zip'
  Content type 'application/octet-stream;charset=UTF-8' length 95835 bytes (93 KB)
  ==================================================
  downloaded 93 KB
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 75 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
  1. Failure: test filtering in the get_eurostat_data function (@test-all.R#158) 
  
  Error: testthat unit tests failed
  In addition: Warning message:
  In .Internal(gc(verbose, reset, full)) :
    closing unused connection 4 (http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_text)
  Execution halted