Running 'testthat.R' [171s]
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
             No 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 1454718 bytes (1.4 MB)
  ==================================================
  downloaded 1.4 MB
  
  trying URL 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/htec_cis3.tsv.gz'
  Content type 'application/octet-stream;charset=UTF-8' length 5116 bytes
  ==================================================
  downloaded 5116 bytes
  
  trying URL 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/agr_r_milkpr.tsv.gz'
  Content type 'application/octet-stream;charset=UTF-8' length 27261 bytes (26 KB)
  ==================================================
  downloaded 26 KB
  
  trying URL 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/agr_r_milkpr.tsv.gz'
  Content type 'application/octet-stream;charset=UTF-8' length 27261 bytes (26 KB)
  ==================================================
  downloaded 26 KB
  
  trying URL 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/agr_r_milkpr.tsv.gz'
  Content type 'application/octet-stream;charset=UTF-8' length 27261 bytes (26 KB)
  ==================================================
  downloaded 26 KB
  
  trying URL 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/agr_r_milkpr.tsv.gz'
  Content type 'application/octet-stream;charset=UTF-8' length 27261 bytes (26 KB)
  ==================================================
  downloaded 26 KB
  
  trying URL 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/avia_par_me.tsv.gz'
  Content type 'application/octet-stream;charset=UTF-8' length 22971 bytes (22 KB)
  ==================================================
  downloaded 22 KB
  
  -- 1. Error: (unknown) (@test-all.R#196)  --------------------------------------
  object 'xml_leafs' not found
  1: get_eurostat_toc(verbose = TRUE) at testthat/test-all.R:196
  
  == testthat results  ===========================================================
  [ OK: 17 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
  1. Error: (unknown) (@test-all.R#196) 
  
  Error: testthat unit tests failed
  In addition: There were 12 warnings (use warnings() to see them)
  Execution halted