Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [8s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("httptest")
  Loading required package: httptest
  Saving _problems/test-find-redactor-76.R
  Saving _problems/test-find-redactor-80.R
  Saving _problems/test-find-redactor-100.R
  Using request.R from "testpkg"
  [ FAIL 3 | WARN 0 | SKIP 13 | PASS 285 ]
  
  ══ Skipped tests (13) ══════════════════════════════════════════════════════════
  • On CRAN (8): 'test-capture-requests.R:6:3', 'test-capture-requests.R:51:3',
    'test-capture-requests.R:103:3', 'test-expect-header.R:111:5',
    'test-mock-dir.R:26: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:249:5'
  • TODO: prettify when simplify=FALSE (1): 'test-capture-requests.R:189:5'
  • third_edition is TRUE (2): 'test-expect-header.R:64:7',
    'test-without-internet.R:73:7'
  • {testpkg} is not installed. (1): 'test-find-redactor.R:55:13'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-find-redactor.R:73:5'): Request preprocessing via package inst/httptest/request.R ──
  Error: GET http://pythong.org/api/object1/ (pythong.org/api/object1.json)
  Backtrace:
       ▆
    1. ├─testthat::expect_identical(...) at test-find-redactor.R:73:5
    2. │ └─testthat::quasi_label(enquo(object), label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─httr::content(GET("http://pythong.org/api/object1/"))
    5. │ ├─base::stopifnot(is.response(x))
    6. │ └─httr:::is.response(x)
    7. └─httr::GET("http://pythong.org/api/object1/")
    8.   └─httr:::request_perform(req, hu$handle$handle)
    9.     └─httr:::request_fetch(req$output, req$url, handle)
   10.       └─httptest (local) `<fn>`(req)
   11.         └─httptest:::stop_request(req)
  ── Failure ('test-find-redactor.R:80:5'): set_redactor(NULL) to override default (and loaded packages) ──
  Expected `"testpkg" %in% names(sessionInfo()$otherPkgs)` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  ── Error ('test-find-redactor.R:79:3'): set_redactor(NULL) to override default (and loaded packages) ──
  Error in `detach("package:testpkg", unload = TRUE)`: invalid 'name' argument
  Backtrace:
      ▆
   1. └─base::detach("package:testpkg", unload = TRUE)
  
  [ FAIL 3 | WARN 0 | SKIP 13 | PASS 285 ]
  Error:
  ! Test failures.
  Execution halted