* using log directory 'd:/Rcompile/CRANpkg/local/4.5/rnrfa.Rcheck' * using R Under development (unstable) (2024-06-03 r86679 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'rnrfa/DESCRIPTION' ... OK * this is package 'rnrfa' version '2.1.0.5' * 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 'rnrfa' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [2s] 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 ... [6s] OK * checking Rd files ... [0s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [3s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [114s] ERROR Running 'testthat.R' [113s] Running the tests in 'tests/testthat.R' failed. Complete output: > library("testthat") > library("rnrfa") > library("lintr") > > if (!curl::has_internet()) { + message("No internet, cannot run tests") + }else { + test_check("rnrfa") + } [ FAIL 5 | WARN 0 | SKIP 1 | PASS 53 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On Windows (1): 'test-gdf.R:18:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-catalogue.R:12:3'): Check output of catalogue for Plynlimon area ── Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [nrfaapps.ceh.ac.uk] Recv failure: Connection was reset Backtrace: ▆ 1. ├─testthat::expect_that(...) at test-catalogue.R:12:3 2. │ └─testthat (local) condition(object) 3. │ └─testthat::expect_equal(x, expected, ..., expected.label = label) 4. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 5. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 6. └─rnrfa::catalogue(...) 7. └─rnrfa:::nrfa_api(webservice = "station-info", parameters) 8. └─httr::GET(url = url, query = parameters, ua) 9. └─httr:::request_perform(req, hu$handle$handle) 10. ├─httr:::request_fetch(req$output, req$url, handle) 11. └─httr:::request_fetch.write_memory(req$output, req$url, handle) 12. └─curl::curl_fetch_memory(url, handle = handle) ── Error ('test-catalogue.R:20:3'): Check output of catalogue for minimum records of 100 years ── Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [nrfaapps.ceh.ac.uk] Failed to connect to nrfaapps.ceh.ac.uk port 443 after 10008 ms: Timeout was reached Backtrace: ▆ 1. └─rnrfa::catalogue(min_rec = 100) at test-catalogue.R:20:3 2. └─rnrfa:::nrfa_api(webservice = "station-info", parameters) 3. └─httr::GET(url = url, query = parameters, ua) 4. └─httr:::request_perform(req, hu$handle$handle) 5. ├─httr:::request_fetch(req$output, req$url, handle) 6. └─httr:::request_fetch.write_memory(req$output, req$url, handle) 7. └─curl::curl_fetch_memory(url, handle = handle) ── Error ('test-catalogue.R:40:3'): Check the catalogue function filters based on column values ── Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [nrfaapps.ceh.ac.uk] Failed to connect to nrfaapps.ceh.ac.uk port 443 after 10015 ms: Timeout was reached Backtrace: ▆ 1. └─rnrfa::catalogue(column_name = "river", column_value = "Wye") at test-catalogue.R:40:3 2. └─rnrfa:::nrfa_api(webservice = "station-info", parameters) 3. └─httr::GET(url = url, query = parameters, ua) 4. └─httr:::request_perform(req, hu$handle$handle) 5. ├─httr:::request_fetch(req$output, req$url, handle) 6. └─httr:::request_fetch.write_memory(req$output, req$url, handle) 7. └─curl::curl_fetch_memory(url, handle = handle) ── Error ('test-cmr.R:5:3'): Output of cmr function for single station ───────── Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [nrfaapps.ceh.ac.uk] Failed to connect to nrfaapps.ceh.ac.uk port 443 after 10008 ms: Timeout was reached Backtrace: ▆ 1. └─rnrfa::cmr(id = 18019, metadata = FALSE, cl = NULL) at test-cmr.R:5:3 2. └─rnrfa::get_ts(id, type = "cmr", metadata, cl, verbose) 3. ├─base::unlist(...) 4. └─rnrfa:::get_ts_internal(...) 5. └─rnrfa:::nrfa_api(webservice = "time-series", parameters) 6. └─httr::GET(url = url, query = parameters, ua) 7. └─httr:::request_perform(req, hu$handle$handle) 8. ├─httr:::request_fetch(req$output, req$url, handle) 9. └─httr:::request_fetch.write_memory(req$output, req$url, handle) 10. └─curl::curl_fetch_memory(url, handle = handle) ── Error ('test-cmr.R:18:3'): Output of cmr function for multiple stations ───── Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [nrfaapps.ceh.ac.uk] Failed to connect to nrfaapps.ceh.ac.uk port 443 after 10010 ms: Timeout was reached Backtrace: ▆ 1. └─rnrfa::cmr(id = ids, metadata = FALSE, cl = NULL) at test-cmr.R:18:3 2. └─rnrfa::get_ts(id, type = "cmr", metadata, cl, verbose) 3. └─base::lapply(...) 4. └─rnrfa (local) FUN(X[[i]], ...) 5. └─rnrfa:::nrfa_api(webservice = "time-series", parameters) 6. └─httr::GET(url = url, query = parameters, ua) 7. └─httr:::request_perform(req, hu$handle$handle) 8. ├─httr:::request_fetch(req$output, req$url, handle) 9. └─httr:::request_fetch.write_memory(req$output, req$url, handle) 10. └─curl::curl_fetch_memory(url, handle = handle) [ FAIL 5 | WARN 0 | SKIP 1 | PASS 53 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [47s] OK * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 1 ERROR