* using log directory 'd:/Rcompile/CRANpkg/local/3.4/restatapi.Rcheck' * using R version 3.4.4 (2018-03-15) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'restatapi/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'restatapi' version '0.1.4' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'restatapi' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [5s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking line endings in shell scripts ... OK * checking examples ... [1s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [52s] ERROR Running 'testthat.R' [51s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(restatapi) restatapi: The 'current' API version number is 1 and 31 cores are used for parallel computing. Loaded config file with the API version number 1 > > 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 1443068 bytes (1.4 MB) ================================================== downloaded 1.4 MB trying URL 'http://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?file=data/htec_cis3.sdmx.zip' -- 1. Error: (unknown) (@test-all.R#59) --------------------------------------- object 'sdmx_file' not found 1: system.time({ dt1 <- get_eurostat_data(id, keep_flags = TRUE, verbose = TRUE) }) at testthat/test-all.R:59 2: get_eurostat_data(id, keep_flags = TRUE, verbose = TRUE) at testthat/test-all.R:59 3: get_eurostat_bulk(id, cache, update_cache, cache_dir, compress_file, stringsAsFactors, select_freq, keep_flags, verbose, ...) 4: get_eurostat_raw(id, cache, update_cache, cache_dir, compress_file, stringsAsFactors, keep_flags, verbose, ...) 5: xml2::xml_find_all(xml2::read_xml(sdmx_file), ".//data:Series") 6: xml2::read_xml(sdmx_file) == testthat results =========================================================== OK: 8 SKIPPED: 0 WARNINGS: 0 FAILED: 1 1. Error: (unknown) (@test-all.R#59) Error: testthat unit tests failed In addition: Warning messages: 1: In .Internal(gc(verbose, reset)) : closing unused connection 5 (http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_ei_bsfs_q) 2: In .Internal(gc(verbose, reset)) : closing unused connection 4 (http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_ei_bsco_m) Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR