Running 'tinytest.R' [45s/111s]
Running the tests in 'tests/tinytest.R' failed.
Complete output:
  > if ( requireNamespace("tinytest", quietly=TRUE) ){
  +   home <- length(unclass(packageVersion("restatapi"))[[1]]) == 4
  +   tinytest::test_package("restatapi", at_home = home)
  + }
  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, can be changed with 'options(restatapi_cores=...)'
             - 'auto' method will be used for file download, can be changed with 'options(restatapi_dmethod=...)'
             - the Table of contents (TOC) was not pre-loaded into the deafult cache ('.restatapi_env').
  
  Running test_restatapi.R..............    0 tests    
  Running test_restatapi.R..............    0 tests    
  Running test_restatapi.R..............    0 tests    
  Running test_restatapi.R..............    0 tests    
  Running test_restatapi.R..............    0 tests    
  Running test_restatapi.R..............    0 tests    All objects except from 'cfg', 'rav', 'cc' and 'dmethod' are removed from '.restatapi_env'.
  
  Running test_restatapi.R..............    0 tests    
  Running test_restatapi.R..............    0 tests    
  Running test_restatapi.R..............    0 tests    
  Running test_restatapi.R..............    0 tests    
  Running test_restatapi.R..............    0 tests    
  Running test_restatapi.R..............    0 tests    
  Running test_restatapi.R..............    0 tests    
  Running test_restatapi.R..............    0 tests    
  Running test_restatapi.R..............    0 tests    
  Running test_restatapi.R..............    0 tests    
  Running test_restatapi.R..............    0 tests    
  Running test_restatapi.R..............    0 tests    
  Running test_restatapi.R..............    0 tests    get_eurostat_toc - Downloading https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?sort=1&downfile=table_of_contents.xml
  The TOC was cached in memory ('toc.xml.en' in '.restatapi_env').
  
  
  Running test_restatapi.R..............    0 tests    Downloading https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?sort=1&file=table_of_contents_en.txt
  trying URL 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?sort=1&file=table_of_contents_en.txt'
  Content type 'text/plain;charset=UTF-8' length 1554877 bytes (1.5 MB)
  ==================================================
  downloaded 1.5 MB
  
  The TOC was cached in memory ('toc.txt.en' in '.restatapi_env').
  
  
  Running test_restatapi.R..............    0 tests    The 'toc.xml.en' was loaded from 'toc.xml.en' in '.restatapi_env'.
  The TOC was cached previously in memory ('toc.xml.en' in '.restatapi_env'). It remained unchanged.
  
  
  Running test_restatapi.R..............    0 tests    
   ########--------- 1 test of the get_eurostat_toc function
  
   ########--------- 2 test of the get_eurostat_toc function
  
   ########--------- 3 test of the get_eurostat_toc function
  
   ########--------- 4 test of the get_eurostat_toc function
  
   ########--------- 5 test of the get_eurostat_toc function
  
   ########--------- 6 test of the get_eurostat_toc function
  
   ########--------- 7 test of the get_eurostat_toc function
  
  Running test_restatapi.R..............    7 tests [0;32mOK[0m The 'toc.xml.en' was loaded from 'toc.xml.en' in '.restatapi_env'.
  The TOC was cached previously in memory ('toc.xml.en' in '.restatapi_env'). It remained unchanged.
  
  
  Running test_restatapi.R..............    7 tests [0;32mOK[0m The 'toc.xml.en' was loaded from 'toc.xml.en' in '.restatapi_env'.
  The TOC was cached previously in memory ('toc.xml.en' in '.restatapi_env'). It remained unchanged.
  
  
  Running test_restatapi.R..............    7 tests [0;32mOK[0m get_eurostat_toc - Downloading https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?sort=1&downfile=table_of_contents.xml
  The TOC was cached in memory ('toc.xml.de' in '.restatapi_env').
  
  
  Running test_restatapi.R..............    7 tests [0;32mOK[0m 
   ########--------- 8 test of the search_eurostat_toc function
  
   ########--------- 9 test of the search_eurostat_toc function
  
  Running test_restatapi.R..............    9 tests [0;32mOK[0m get_eurostat_dsd - Trying to download the DSD from: http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_NAMA_10_GDP
  trying URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_NAMA_10_GDP'
  downloaded 37 KB
  
  Trying to extract the DSD from: /tmp/RtmpDPuHQl/file482d2af3b80
  get_eurostat_dsd - The DSD of the NAMA_10_GDP dataset was cached in memory ('NAMA_10_GDP.dsd' in '.restatapi_env').
  
  
   ########--------- 10 test of the get_eurostat_dsd function
  
   ########--------- 11 test of the get_eurostat_dsd function
  get_eurostat_dsd - Trying to download the DSD from: http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_text
  trying URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_text'
  get_eurostat_dsd - Warning by the download of the DSD file:
  cannot open URL 'http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_text': HTTP status was '404 Not Found'
  utils::download.file(dsd_endpoint, temp, dmethod)
  get_eurostat_dsd - The dsd_xml is NULL. Please check in a browser the url below. If it provides valid reponse you can try again to download the DSD.
   http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_text
  
   ########--------- 12 test of the get_eurostat_dsd function
  
  Running test_restatapi.R..............   12 tests [0;32mOK[0m 
  Running test_restatapi.R..............   12 tests [0;32mOK[0m 
  Running test_restatapi.R..............   12 tests [0;32mOK[0m 
   ########--------- 13 test of the search_eurostat_dsd function
  
   ########--------- 14 test of the search_eurostat_dsd function
  
   ########--------- 15 test of the search_eurostat_dsd function
  
   ########--------- 16 test of the search_eurostat_dsd function
  
   ########--------- 17 test of the search_eurostat_dsd function
  
   ########--------- 18 test of the search_eurostat_dsd function
  
   ########--------- 19 test of the search_eurostat_dsd function
  
   ########--------- 20 test of the search_eurostat_dsd function
  
  Running test_restatapi.R..............   20 tests [0;32mOK[0m Trying to get from cache: b_htec_cis3-2021.05.08-1-1
  get_eurostat_bulk - charactertxtlogicallogicalNULLlogicallogicallogicallogicalfunctionlogical
  get_eurostat_raw - bulk url: http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/htec_cis3.tsv.gz
  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
  
  get_eurostat_raw - /tmp/RtmpDPuHQl/file482d2990d9ba-1-size#isdir#mode#mtime#ctime#atime#uid#gid#uname#grname-5116-TRUE
  class:data.tabledata.frame
  get_eurostat_raw - caching in raw:FALSE local filter:FALSE called from:get_eurostat_rawidtxtcacheupdate_cachecache_dircompress_filestringsAsFactorskeep_flagscheck_tocTRUEverbose
  get_eurostat_raw - TRUE
  FALSEFALSEFALSE
  The data was downloaded with bulk download.
  get_eurostat_data - bulk restat - nrow:1006; ncol:7; colnames:indic_in/nace_r1/unit/geo/time/values/flags
  get_eurostat_data - cflags:TRUE
  get_eurostat_data - restat - nrow:1006; ncol:7; colnames:indic_in/nace_r1/unit/geo/time/values/flags
  get_eurostat_data - processed restat - nrow:1006; ncol:7; colnames:indic_in/nace_r1/unit/geo/time/values/flags
  The data was cached in memory ('b_htec_cis3-2021.05.08-1-1' in '.restatapi_env').
  
  
  Running test_restatapi.R..............   20 tests [0;32mOK[0m 
  Running test_restatapi.R..............   20 tests [0;32mOK[0m Trying to get from cache: b_htec_cis3-2021.05.08-0-0
  The 'b_htec_cis3-2021.05.08-0-0' was loaded from 'b_htec_cis3-2021.05.08-1-1' in '.restatapi_env'.
  The data was loaded from cache.
  get_eurostat_data - cached restat - nrow:1006; ncol:7; colnames:indic_in/nace_r1/unit/geo/time/values/flags
  get_eurostat_data - restat - nrow:1006; ncol:7; colnames:indic_in/nace_r1/unit/geo/time/values/flags
  get_eurostat_data - processed restat - nrow:1006; ncol:6; colnames:indic_in/nace_r1/unit/geo/time/values
  The data was cached in memory ('b_htec_cis3-2021.05.08-0-0' in '.restatapi_env').
  
  
  Running test_restatapi.R..............   20 tests [0;32mOK[0m 
  Running test_restatapi.R..............   20 tests [0;32mOK[0m 
   ########--------- 21 test of the get_eurostat_data function
  
   ########--------- 22 test of the get_eurostat_data function
  
   ########--------- 23 test of the get_eurostat_data function
  
   ########--------- 24 test of the get_eurostat_data function
  
  Running test_restatapi.R..............   24 tests [0;32mOK[0m 
   ########--------- 25 test of the get_eurostat_raw/bulk/data functions
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/ds-066341.tsv.gz'
  downloaded 13 KB
  
  
   ########--------- 26 test of the get_eurostat_raw/bulk/data functions
  
   ########--------- 27 test of the get_eurostat_raw/bulk/data functions
  
   ########--------- 28 test of the get_eurostat_raw/bulk/data functions
  
   ########--------- 29 test of the get_eurostat_raw/bulk/data functions
  
   ########--------- 30 test of the get_eurostat_raw/bulk/data functions
  
   ########--------- 31 test of the get_eurostat_raw/bulk/data functions
  trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/ds-066341.tsv.gz'
  downloaded 13 KB
  
  
   ########--------- 32 test of the get_eurostat_raw/bulk/data functions
  
  Running test_restatapi.R..............   32 tests [0;32mOK[0m get_eurostat_raw - bulk url: http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/agr_r_milkpr.sdmx.zip
  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 80232 bytes (78 KB)
  ==================================================
  downloaded 78 KB
  
  get_compressed_sdmx - Error during the unzip of the SDMX file:
  cannot open file './agr_r_milkpr.sdmx.xml': Read-only file system
  utils::unzip(temp, paste0(fajl, ".xml"))
  get_eurostat_raw - caching in raw:TRUE local filter:FALSE called from:get_eurostat_rawtestid4xmlTRUETRUE
  get_eurostat_raw - FALSE
  
  Running test_restatapi.R..............   32 tests [0;32mOK[0m Trying to get from cache: b_agr_r_milkpr-2021.05.08-1-0
  get_eurostat_bulk - charactertxtlogicallogicalNULLlogicallogicallogicallogicalfunctionlogical
  get_eurostat_raw - bulk url: http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/agr_r_milkpr.tsv.gz
  trying URL 'http://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 29676 bytes (28 KB)
  ==================================================
  downloaded 28 KB
  
  get_eurostat_raw - /tmp/RtmpDPuHQl/file482d527d8622-1-size#isdir#mode#mtime#ctime#atime#uid#gid#uname#grname-29676-TRUE
  class:data.tabledata.frame
  get_eurostat_raw - caching in raw:FALSE local filter:FALSE called from:get_eurostat_rawidtxtcacheupdate_cachecache_dircompress_filestringsAsFactorskeep_flagscheck_tocTRUEverbose
  get_eurostat_raw - TRUE
  FALSEFALSEFALSE
  The data was downloaded with bulk download.
  get_eurostat_data - bulk restat - nrow:9670; ncol:6; colnames:milkitem/dairyprod/geo/time/values/flags
  get_eurostat_data - cflags:FALSE
  get_eurostat_data - restat - nrow:9670; ncol:6; colnames:milkitem/dairyprod/geo/time/values/flags
  get_eurostat_data - processed restat - nrow:9670; ncol:6; colnames:milkitem/dairyprod/geo/time/values/flags
  The data was cached in memory ('b_agr_r_milkpr-2021.05.08-1-0' in '.restatapi_env').
  
  
  Running test_restatapi.R..............   32 tests [0;32mOK[0m get_eurostat_data - date_filter: 2008
  filters: 2008; is numeric: TRUE; call parents: 7
  length df: 1 -*- df: 2008
  create_filter_table -  2008 date filter length: 1, nchar date_filter: 4
  get_eurostat_data - date_filter: 2008 nrow dft: 1
  -?startPeriod=2008-01-01&endPeriod=2008-12-31
  http://ec.europa.eu/eurostat/SDMX/diss-web/rest/data/agr_r_milkpr/?startPeriod=2008-01-01&endPeriod=2008-12-31
  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
  
  get_eurostat_data - http://ec.europa.eu/eurostat/SDMX/diss-web/rest/data/agr_r_milkpr/?startPeriod=2008-01-01&endPeriod=2008-12-31
  code:  - severity:
  
  get_eurostat_data - restat - nrow:569; ncol:7; colnames:DAIRYPROD/MILKITEM/GEO/FREQ/obsTime/obsValue/OBS_STATUS
  get_eurostat_data - processed restat - nrow:390; ncol:6; colnames:dairyprod/milkitem/geo/time/values/flags
  
  Running test_restatapi.R..............   32 tests [0;32mOK[0m 
   ########--------- 33 test of the get_eurostat_raw/bulk/data functions
  
  Running test_restatapi.R..............   33 tests [0;32mOK[0m get_eurostat_raw - bulk url: http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/irt_h_eurcoe_d.tsv.gz
  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
  
  get_eurostat_raw - /tmp/RtmpDPuHQl/file482d4725943a-1-size#isdir#mode#mtime#ctime#atime#uid#gid#uname#grname-145791-TRUE
  class:data.tabledata.frame
  get_eurostat_raw - caching in raw:TRUE local filter:FALSE called from:get_eurostat_rawtestid5TRUE
  get_eurostat_raw - FALSE
  The raw data was cached in memory ('r_irt_h_eurcoe_d-2021.05.08-0' in '.restatapi_env').
  
  
  Running test_restatapi.R..............   33 tests [0;32mOK[0m get_eurostat_bulk - charactertxtlogicallogicalNULLlogicallogicallogicallogicalfunctionlogical
  get_eurostat_raw - bulk url: http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/irt_h_eurcoe_d.tsv.gz
  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
  
  get_eurostat_raw - /tmp/RtmpDPuHQl/file482d12f1b139-1-size#isdir#mode#mtime#ctime#atime#uid#gid#uname#grname-145791-TRUE
  class:data.tabledata.frame
  get_eurostat_raw - caching in raw:FALSE local filter:FALSE called from:get_eurostat_rawidtxtcacheupdate_cachecache_dircompress_filestringsAsFactorskeep_flagscheck_tocTRUEverbose
  get_eurostat_raw - TRUE
  The bulk data was cached in memory ('b_irt_h_eurcoe_d-2021.05.08-1-0' in '.restatapi_env').
  
  
  Running test_restatapi.R..............   33 tests [0;32mOK[0m The 'toc.xml.en' was loaded from 'toc.xml.en' in '.restatapi_env'.
  The TOC was cached previously in memory ('toc.xml.en' in '.restatapi_env'). It remained unchanged.
  
  get_eurostat_raw - raw TOC rows: 6719
  bulk url: https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/irt_h_eurcoe_d.sdmx.zip
  data rowcount: 29862
  trying URL 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/irt_h_eurcoe_d.sdmx.zip'
  get_compressed_sdmx - Warning during the download of the SDMX file:
  URL 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/irt_h_eurcoe_d.sdmx.zip': Timeout of 60 seconds was reached
  utils::download.file(url, temp, dmethod)
  Error in get_compressed_sdmx - "Warning by the unzip of the SDMX file:" : 
    non-numeric argument to binary operator
  Calls: <Anonymous> ... tryCatchOne -> <Anonymous> -> message -> .makeMessage -> lapply
  Execution halted