Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [3s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(trud)
  > 
  > test_check("trud")
  \ Downloading archive file for TRUD item 394...
  v Successfully downloaded `download_file.txt` to '/home/hornik/tmp/scratch/Rt...
  
  \ Downloading archive file for TRUD item 394...
  v Successfully downloaded `file24313a764a5e30` to '/home/hornik/tmp/scratch/R...
  
  Saving _problems/test-get_subscribed_metadata-16.R
  [ FAIL 1 | WARN 0 | SKIP 6 | PASS 28 ]
  
  ══ Skipped tests (6) ═══════════════════════════════════════════════════════════
  • On CRAN (6): 'test-download_item.R:101:3', 'test-get_item_metadata.R:31:3',
    'test-get_item_metadata.R:56:3', 'test-get_item_metadata.R:111:3',
    'test-get_subscribed_metadata.R:29:3', 'test-trud_items.R:107:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-get_subscribed_metadata.R:16:7'): get_subscribed_metadata() returns formatted metadata with correct structure ──
  Error in `open.connection(x, "rb")`: cannot open the connection
  Backtrace:
       ▆
    1. ├─testthat::with_mocked_bindings(...) at test-get_subscribed_metadata.R:2:3
    2. └─trud::get_subscribed_metadata() at test-get_subscribed_metadata.R:16:7
    3.   └─trud::trud_items()
    4.     └─trud:::get_trud_items_html()
    5.       ├─rvest::read_html("https://isd.digital.nhs.uk/trud/users/guest/filters/0/categories/1")
    6.       └─xml2:::read_html.default("https://isd.digital.nhs.uk/trud/users/guest/filters/0/categories/1")
    7.         ├─base::suppressWarnings(...)
    8.         │ └─base::withCallingHandlers(...)
    9.         ├─xml2::read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options)
   10.         └─xml2:::read_xml.character(...)
   11.           └─xml2:::read_xml.connection(...)
   12.             ├─base::open(x, "rb")
   13.             └─base::open.connection(x, "rb")
  
  [ FAIL 1 | WARN 0 | SKIP 6 | PASS 28 ]
  Error:
  ! Test failures.
  Execution halted