Skip to content

trud

Query the 'NHS TRUD API'

v0.2.1 · Mar 16, 2026 · MIT + file LICENSE

Description

Provides a convenient R interface to the 'National Health Service NHS Technology Reference Update Distribution (TRUD) API', allowing users to list available releases for their subscribed items, retrieve metadata, and download release files. For more information on the API, see <https://isd.digital.nhs.uk/trud/users/guest/filters/0/api>.

Downloads

410

Last 30 days

9207th

700

Last 90 days

2K

Last year

Trend: +173.3% (30d vs prior 30d)

CRAN Check Status

1 ERROR
13 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 ERROR
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (1 non-OK)
ERROR r-release-linux-x86_64

tests

Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [4s/6s]
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 `file37123e3ddb1ab6` to '/home/hornik/tmp/scratch/R...
  
  Saving _problems/test-get_subscribed_metadata-25.R
  [ FAIL 1 | WARN 1 | SKIP 6 | PASS 30 ]
  
  ══ 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 ════════════════════════════════════════════════════════════════
  ── Failure ('test-get_subscribed_metadata.R:25:3'): get_subscribed_metadata() returns formatted metadata with correct structure ──
  Expected `nrow(result) > 0` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 1 | WARN 1 | SKIP 6 | PASS 30 ]
  Error:
  ! Test failures.
  Execution halted

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 28, 2026
ERROR r-release-linux-x86_64

tests

Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [4s/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.
  > #
  > # Wh
...[truncated]...
data() returns formatted metadata with correct structure ──
  Expected `nrow(result) > 0` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 1 | WARN 1 | SKIP 6 | PASS 30 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies cli dplyr httr2 purrr rlang rvest stringr tibble trud

Version History

updated 0.2.1 ← 0.2.0 diff Mar 16, 2026
new 0.2.0 Mar 10, 2026
updated 0.2.0 ← 0.1.0 diff Aug 17, 2025
new 0.1.0 Jul 22, 2024