Running ‘testthat.R’ [44s/76s]
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).
             - 4 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'
  Content type 'application/octet-stream;charset=UTF-8' length 1492481 bytes (1.4 MB)
  ==================================================
  downloaded 1.4 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://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id0%09keep_flags%3DFALSE%09cflags%3DTRUE'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://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 'http://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id0%09stringsAsFactors%3DFALSE'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/ds-066341.tsv.gz'
  downloaded 13 KB
  
  trying URL 'http://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id0%09verbose%3DFALSE'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/ds-066341.tsv.gz'
  downloaded 13 KB
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/agr_r_milkpr.sdmx.zip'
  Content type 'application/octet-stream;charset=UTF-8' length 78305 bytes (76 KB)
  ==================================================
  downloaded 76 KB
  
  trying URL 'http://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id1%09stringsAsFactors%3DFALSE%09keep_flags%3DTRUE'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id1%09date_filter%3D2008%09stringsAsFactors%3DFALSE%09keep_flags%3DTRUE'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/data/agr_r_milkpr/?startPeriod=2008-01-01&endPeriod=2008-12-31'
  downloaded 201 KB
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/irt_h_eurcoe_d.tsv.gz'
  Content type 'application/octet-stream;charset=UTF-8' length 145791 bytes (142 KB)
  ==================================================
  downloaded 142 KB
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/irt_h_eurcoe_d.tsv.gz'
  Content type 'application/octet-stream;charset=UTF-8' length 145791 bytes (142 KB)
  ==================================================
  downloaded 142 KB
  
  trying URL 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/irt_h_eurcoe_d.sdmx.zip'
  Content type 'application/octet-stream;charset=UTF-8' length 297076 bytes (290 KB)
  ==================================================
  downloaded 290 KB
  
  trying URL 'http://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id1%09filters%3D2018%09stringsAsFactors%3DFALSE'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_agr_r_milkpr'
  downloaded 116 KB
  
  trying URL 'http://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id1%09date_filter%3D22020'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id1%09date_filter%3D<2006<%09cache_dir%3Dtempdir()'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id2%09filters%3DHU%09date_filter%3D2017-03%09label%3DTRUE%09select_freq%3DQ'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_avia_par_me'
  downloaded 24 KB
  
  trying URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/data/avia_par_me/Q.../?startPeriod=2017-03-01&endPeriod=2017-03-31'
  downloaded 1362 bytes
  
  trying URL 'http://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id1%09filters%3D2018%09cflags%3DTRUE'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id1%09filters%3DAT'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/data/agr_r_milkpr/...AT/'
  downloaded 4063 bytes
  
  trying URL 'http://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id1%09filters%3DAT%09exact_match%3DFALSE%09keep_flags%3DTRUE'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/data/agr_r_milkpr/...AT+AT1+AT11+AT12+AT13+AT2+AT21+AT22+AT3+AT31+AT32+AT33+AT34/'
  downloaded 38 KB
  
  trying URL 'http://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id1%09date_filter%3D2016'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/data/agr_r_milkpr/?startPeriod=2016-01-01&endPeriod=2016-12-31'
  downloaded 200 KB
  
  trying URL 'http://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id1%09date_filter%3D2016%09keep_flags%3DTRUE'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/data/agr_r_milkpr/?startPeriod=2016-01-01&endPeriod=2016-12-31'
  downloaded 200 KB
  
  trying URL 'http://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id1%09filters%3DAT%09exact_match%3DFALSE%09keep_flags%3DTRUE%09ignore.case%3DTRUE'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/data/agr_r_milkpr/...AT+AT1+AT11+AT12+AT13+AT2+AT21+AT22+AT3+AT31+AT32+AT33+AT34+EL51+EL11+EL3+EL30+ES51+HR+HR03+HR04+HR01+HR02+ITF5+LV+LV0+LV00+HU22+RO4+SK01+UKD3+UKK1+TR2+TR5+TR63+TR72+TR8+TR83+TRB1+TRC3+XK/'
  downloaded 129 KB
  
  trying URL 'http://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id1%09filters%3DBE$%09date_filter%3D2006-02:2008-06-05%09label%3DTRUE'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/data/agr_r_milkpr/...BE/?startPeriod=2006-02-01&endPeriod=2008-06-05'
  downloaded 1822 bytes
  
  trying URL 'http://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id1%09filters%3DBE%09date_filter%3D<2008%09cflags%3DTRUE'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/data/agr_r_milkpr/...BE/?endPeriod=2008-12-31'
  downloaded 3230 bytes
  
  trying URL 'http://restatapi.azurewebsites.net/restatapi.php?params=0.8.6%09id%3Dteszt_id2%09filters%3DQ...ME_LYPG_HU_LHBP+ME_LYTV_UA_UKKK%09date_filter%3Dc("2017-07-01")%09select_freq%3DM%09cflags%3DTRUE'
  Content type 'text/html; charset=UTF-8' length 7 bytes
  ==================================================
  downloaded 7 bytes
  
  trying URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/data/avia_par_me/M+Q...ME_LYPG_HU_LHBP+ME_LYTV_UA_UKKK/?startPeriod=2017-07-01&endPeriod=2017-07-01'
  downloaded 57 KB
  
  ── 1. Failure: test of the get/put_eurostat_cache function (@test-all.R#206)  ──
  exists(paste0("r_irt_h_eurcoe_d-", udate, "-0"), envir = .restatapi_env) isn't true.
  
  ── 2. Failure: test of the get/put_eurostat_cache function (@test-all.R#208)  ──
  exists(paste0("b_agr_r_milkpr-", udate, "-0-0"), envir = .restatapi_env) isn't true.
  
  ── 3. Failure: test of the get/put_eurostat_cache function (@test-all.R#209)  ──
  exists(paste0("r_agr_r_milkpr-", udate, "-1"), envir = .restatapi_env) isn't true.
  
  ── 4. Failure: test of the get/put_eurostat_cache function (@test-all.R#211)  ──
  exists(paste0("b_agr_r_milkpr-", udate, "-1-0"), envir = .restatapi_env) isn't true.
  
  ── 5. Failure: test of the get/put_eurostat_cache function (@test-all.R#212)  ──
  exists(paste0("b_agr_r_milkpr-", udate, "-1-1"), envir = .restatapi_env) isn't true.
  
  ── 6. Failure: test of the get/put_eurostat_cache function (@test-all.R#213)  ──
  exists(paste0("b_htec_cis3-", udate, "-0-0"), envir = .restatapi_env) isn't true.
  
  ── 7. Failure: test of the get/put_eurostat_cache function (@test-all.R#215)  ──
  exists(paste0("b_htec_cis3-", udate, "-1-1"), envir = .restatapi_env) isn't true.
  
  ── 8. Failure: test of the get/put_eurostat_cache function (@test-all.R#218)  ──
  file.exists(...) isn't true.
  
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/tus_00age.tsv.gz'
  Content type 'application/octet-stream;charset=UTF-8' length 423310 bytes (413 KB)
  ==================================================
  downloaded 413 KB
  
  trying URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_tus_00age'
  downloaded 33 KB
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 81 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 8 ]
  1. Failure: test of the get/put_eurostat_cache function (@test-all.R#206) 
  2. Failure: test of the get/put_eurostat_cache function (@test-all.R#208) 
  3. Failure: test of the get/put_eurostat_cache function (@test-all.R#209) 
  4. Failure: test of the get/put_eurostat_cache function (@test-all.R#211) 
  5. Failure: test of the get/put_eurostat_cache function (@test-all.R#212) 
  6. Failure: test of the get/put_eurostat_cache function (@test-all.R#213) 
  7. Failure: test of the get/put_eurostat_cache function (@test-all.R#215) 
  8. Failure: test of the get/put_eurostat_cache function (@test-all.R#218) 
  
  Error: testthat unit tests failed
  Execution halted