Running ‘testthat.R’ [3s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(eurostat)
  > 
  > test_check("eurostat")
  ── 1. Error: Countrycodes are labelled for factors (@test-all.R#92)  ───────────
  cannot open the connection to 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=dic%2Fen%2Fgeo.dic'
  1: expect_equal(levels(label_eurostat(factor(c("FI", "DE", "EU28"), c("FI", "DE", "EU28")), 
         dic = "geo", countrycode = "country.name")), c("Finland", "Germany", "EU28")) at testthat/test-all.R:92
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: levels(label_eurostat(factor(c("FI", "DE", "EU28"), c("FI", "DE", "EU28")), dic = "geo", 
         countrycode = "country.name"))
  5: label_eurostat(factor(c("FI", "DE", "EU28"), c("FI", "DE", "EU28")), dic = "geo", 
         countrycode = "country.name")
  6: get_eurostat_dic(dic, lang = lang)
  7: readr::read_tsv(url(tname), col_names = c("code_name", "full_name"), col_types = readr::cols(.default = readr::col_character()))
  8: read_delimited(file, tokenizer, col_names = col_names, col_types = col_types, locale = locale, 
         skip = skip, skip_empty_rows = skip_empty_rows, comment = comment, n_max = n_max, 
         guess_max = guess_max, progress = progress)
  9: datasource_connection(file, skip, skip_empty_rows, comment)
  10: read_connection(path)
  11: open(con, "rb")
  12: open.connection(con, "rb")
  
  trying URL 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?sort=1&file=data%2Froad_pa_buscoa.tsv.gz'
  Content type 'application/octet-stream;charset=UTF-8' length 4233 bytes
  ==================================================
  downloaded 4233 bytes
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 3 SKIPPED: 20 WARNINGS: 1 FAILED: 1
  1. Error: Countrycodes are labelled for factors (@test-all.R#92) 
  
  Error: testthat unit tests failed
  In addition: Warning message:
  In for (name in names(public_methods)) lockBinding(name, public_bind_env) :
    closing unused connection 4 (https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=dic%2Fen%2Fgeo.dic)
  Execution halted