- using R version 4.4.3 (2025-02-28 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 'httptest/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'httptest' version '4.2.2'
- 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 'httptest' can be installed ... OK
See the install log for details.
- 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 ... [1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [1s] 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 ... [1s] 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 ... [20s] ERROR
Running 'spelling.R' [0s]
Running 'testthat.R' [20s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> test_check("httptest")
Loading required package: httptest
Saving _problems/test-expect-header-18.R
Saving _problems/test-expect-header-33.R
[ FAIL 2 | WARN 0 | SKIP 12 | PASS 289 ]
══ Skipped tests (12) ══════════════════════════════════════════════════════════
• On CRAN (8): 'test-capture-requests.R:6:3', 'test-capture-requests.R:50:3',
'test-capture-requests.R:95:3', 'test-expect-header.R:108:5',
'test-mock-dir.R:22:5', 'test-offline.R:12:7', 'test-offline.R:19:9',
'test-without-internet.R:3:5'
• TODO: handle URL escaping (1): 'test-redact.R:243:5'
• TODO: prettify when simplify=FALSE (1): 'test-capture-requests.R:175:5'
• third_edition is TRUE (2): 'test-expect-header.R:61:7',
'test-without-internet.R:73:7'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-expect-header.R:10:7'): expect_header with fake HTTP ─────────
Expected exactly one failure and no successes.
Actually succeeded 1 times
Backtrace:
▆
1. ├─httptest::expect_GET(...) at test-expect-header.R:10:7
2. │ └─httptest:::expect_mock_request(object, "GET ", url, " ", ...)
3. │ └─request_happened()(...)
4. │ └─testthat:::expect_condition_matching_(...)
5. │ └─testthat:::quasi_capture(...)
6. │ ├─testthat (local) .capture(...)
7. │ │ └─base::withCallingHandlers(...)
8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
9. └─testthat::expect_failure(...)
── Failure ('test-expect-header.R:25:7'): expect_header with fake HTTP ─────────
Expected exactly one failure and no successes.
Actually succeeded 1 times
Backtrace:
▆
1. ├─httptest::expect_POST(...) at test-expect-header.R:25:7
2. │ └─httptest:::expect_mock_request(object, "POST ", url, " ", ...)
3. │ └─request_happened()(...)
4. │ └─testthat:::expect_condition_matching_(...)
5. │ └─testthat:::quasi_capture(...)
6. │ ├─testthat (local) .capture(...)
7. │ │ └─base::withCallingHandlers(...)
8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
9. └─testthat::expect_failure(...)
[ FAIL 2 | WARN 0 | SKIP 12 | PASS 289 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [8s] OK
- checking PDF version of manual ... [18s] OK
- checking HTML version of manual ... [6s] OK
- DONE
Status: 1 ERROR