* using log directory ‘/data/gannet/ripley/R/packages/tests-ATLAS/imfr.Rcheck’ * using R Under development (unstable) (2022-06-15 r82492) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘imfr/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘imfr’ version ‘0.1.9.1’ * 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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘imfr’ can be installed ... 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 ... [10s/11s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [2s/35s] ERROR Running examples in ‘imfr-Ex.R’ failed The error most likely occurred in: > ### Name: imf_codes > ### Title: Retrieve individual database codes > ### Aliases: imf_codes > > ### ** Examples > > # Retrieve indicators from BOP database > test = imf_codes(codelist = 'CL_INDICATOR_BOP') Error in curl::curl_fetch_memory(url, handle = handle): Timeout was reached: [dataservices.imf.org] Connection timed out after 10001 milliseconds Request failed [ERROR]. Retrying in 1 seconds... Error in curl::curl_fetch_memory(url, handle = handle): Timeout was reached: [dataservices.imf.org] Connection timed out after 10000 milliseconds Request failed [ERROR]. Retrying in 1.5 seconds... Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached: [dataservices.imf.org] Connection timed out after 10000 milliseconds Calls: imf_codes ... %>% -> content -> stopifnot -> is.response -> RETRY Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ [3s/71s] [3s/72s] ERROR Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(imfr) > > test_check("imfr") [ FAIL 2 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure (test-next.R:1:1): (code run outside of `test_that()`) ────────────── `imf_data(...)` threw an error. Message: Timeout was reached: [dataservices.imf.org] Connection timed out after 10001 milliseconds Class: simpleError/error/condition Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-next.R:1:0 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─imfr::imf_data(...) 7. │ └─imfr:::imf_data_one(...) 8. │ └─imfr:::download_parse(URL) 9. │ ├─... %>% content(type = "text", encoding = "UTF-8") 10. │ └─httr::RETRY("GET", URL, user_agent(""), progress(), times = times) 11. └─httr::content(., type = "text", encoding = "UTF-8") 12. ├─base::stopifnot(is.response(x)) 13. └─httr:::is.response(x) ── Error (test-next.R:11:1): (code run outside of `test_that()`) ─────────────── Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [dataservices.imf.org] Connection timed out after 10001 milliseconds Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-next.R:11:0 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─base::ncol(...) 5. ├─imfr::imf_data(...) 6. │ └─imfr:::imf_data_one(...) 7. │ └─imfr:::download_parse(URL) 8. │ ├─... %>% content(type = "text", encoding = "UTF-8") 9. │ └─httr::RETRY("GET", URL, user_agent(""), progress(), times = times) 10. └─httr::content(., type = "text", encoding = "UTF-8") 11. ├─base::stopifnot(is.response(x)) 12. └─httr:::is.response(x) [ FAIL 2 | WARN 0 | SKIP 0 | PASS 0 ] Error: Test failures Execution halted * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs See ‘/data/gannet/ripley/R/packages/tests-ATLAS/imfr.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 3:18.48, 68.79 + 8.60