Running 'testthat.R' [63s]
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 1453705 bytes (1.4 MB)
  ==================================================
  downloaded 1.4 MB
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/htec_cis3.tsv.gz'
  -- 1. Error: (unknown) (@test-all.R#67)  ---------------------------------------
  Items of 'old' either NA or outside range [1,0]: 1
  1: system.time({
         dt1 <- get_eurostat_data(id, keep_flags = TRUE, verbose = TRUE)
     }) at testthat/test-all.R:67
  2: get_eurostat_data(id, keep_flags = TRUE, verbose = TRUE) at testthat/test-all.R:67
  3: get_eurostat_bulk(id, cache, update_cache, cache_dir, compress_file, stringsAsFactors, 
         select_freq, keep_flags, verbose)
  4: get_eurostat_raw(id, "txt", cache, update_cache, cache_dir, compress_file, stringsAsFactors, 
         keep_flags, verbose, ...)
  5: data.table::setnames(raw, 1, "bdown")
  6: stop("Items of 'old' either NA or outside range [1,", length(x), "]: ", paste(old[tt], 
         collapse = ","))
  
  == testthat results  ===========================================================
  [ OK: 9 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
  1. Error: (unknown) (@test-all.R#67) 
  
  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_NAMA_10_GDP)
  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