Running 'testthat.R' [91s]
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).
             - 2 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")
  trying URL 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?sort=1&file=table_of_contents_en.txt'
   length 1527614 bytes (1.5 MB)
  ==================================================
  downloaded 1.5 MB
  
  trying URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_NAMA_10_GDP'
  downloaded 37 KB
  
  trying URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_text'
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/htec_cis3.tsv.gz'
  Content length 783 bytes
  ======================================================================================================================================================================================================================================================================================================================================
  downloaded 5116 bytes
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/ds-066341.tsv.gz'
  Content length 783 bytes
  
  downloaded 13 KB
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/ds-066341.tsv.gz'
  Content length 783 bytes
  
  downloaded 13 KB
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/agr_r_milkpr.sdmx.zip'
  == Failed tests ================================================================
  -- Error (test-all.R:109:1): (code run outside of `test_that()`) ---------------
  Error: object 'xml_fajl' not found
  Backtrace:
      x
   1. \-restatapi::get_eurostat_raw(...) test-all.R:109:0
   2.   \-restatapi::get_compressed_sdmx(bulk_url, verbose = verbose)
   3.     \-xml2::read_xml(xml_fajl)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 32 ]
  Error: Test failures
  Execution halted