Running 'testthat.R' [59s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(restatapi)
  restatapi: The 'current' API version number is 1 and 31 cores are used for parallel computing.
             Loaded config file with the API version number 1
  
  > 
  > 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 1443068 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'
  -- 1. Error: (unknown) (@test-all.R#59)  ---------------------------------------
  object 'sdmx_file' not found
  1: system.time({
         dt1 <- get_eurostat_data(id, keep_flags = TRUE, verbose = TRUE)
     }) at testthat/test-all.R:59
  2: get_eurostat_data(id, keep_flags = TRUE, verbose = TRUE) at testthat/test-all.R:59
  3: get_eurostat_bulk(id, cache, update_cache, cache_dir, compress_file, stringsAsFactors, 
         select_freq, keep_flags, verbose, ...)
  4: get_eurostat_raw(id, cache, update_cache, cache_dir, compress_file, stringsAsFactors, 
         keep_flags, verbose, ...)
  5: xml2::xml_find_all(xml2::read_xml(sdmx_file), ".//data:Series")
  6: xml2::read_xml(sdmx_file)
  
  == testthat results  ===========================================================
  OK: 8 SKIPPED: 0 WARNINGS: 0 FAILED: 1
  1. Error: (unknown) (@test-all.R#59) 
  
  Error: testthat unit tests failed
  In addition: Warning messages:
  1: In .Internal(gc(verbose, reset, full)) :
    closing unused connection 5 (http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_ei_bsfs_q)
  2: In .Internal(gc(verbose, reset, full)) :
    closing unused connection 4 (http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_ei_bsco_m)
  Execution halted