* using log directory 'd:/Rcompile/CRANpkg/local/4.4/naptanr.Rcheck' * using R version 4.4.2 (2024-10-31 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'naptanr/DESCRIPTION' ... OK * this is package 'naptanr' version '1.0.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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'naptanr' can be installed ... OK See 'https://www.r-project.org/nosvn/R.check/r-release-windows-x86_64/naptanr-00install.html' for details. * 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] 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 ... [2s] 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 R/sysdata.rda ... OK * checking examples ... [8s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [43s] ERROR Running 'testthat.R' [42s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(naptanr) > > test_check("naptanr") Returning data for area codes: 450 West Yorkshire [ FAIL 1 | WARN 0 | SKIP 0 | PASS 26 ] â•â• Failed tests â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• ── Error ('testcall_naptan_region.R:16:3'): Lookup can return results for broad region keyword ── <curl_error_recv_error/curl_error/error/condition> Error in `curl::curl_fetch_memory(url, handle = handle)`: Failure when receiving data from the peer [naptan.api.dft.gov.uk]: Recv failure: Connection was reset Backtrace: â–† 1. ├─testthat::expect_message(call_naptan_region("yorkshire"), "Returning data for area codes: 220 East Riding of Yorkshire, 320 North Yorkshire, 370 South Yorkshire, 450 West Yorkshire") at testcall_naptan_region.R:16:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─naptanr::call_naptan_region("yorkshire") 8. │ └─naptanr::call_naptan(atco = codes) 9. │ └─httr::GET(url) 10. │ └─httr:::request_perform(req, hu$handle$handle) 11. │ ├─httr:::request_fetch(req$output, req$url, handle) 12. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle) 13. │ └─curl::curl_fetch_memory(url, handle = handle) 14. └─curl:::raise_libcurl_error(...) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 26 ] Error: Test failures Execution halted * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [1s] OK * DONE Status: 1 ERROR