Learn R Programming

trud (version 0.2.0)

trud_items: Get available NHS TRUD items

Description

Scrapes this page from the NHS TRUD website for all available items. The item_number column in the result contains the identifiers you need for get_item_metadata() and download_item().

Subscription Required

You must subscribe to TRUD items individually through the NHS TRUD website before you can access them using get_item_metadata() or download_item(). Simply having an API key is not sufficient. To see items you're already subscribed to, use get_subscribed_metadata(). To browse all available items, use trud_items().

Usage

trud_items()

Arguments

Value

A tibble, with columns item_number and item_name. Use the item_number values as arguments to get_item_metadata() and download_item().

See Also

  • get_subscribed_metadata() to see only items you're subscribed to

  • get_item_metadata() to get detailed information about a specific item

  • download_item() to download files for a specific item

Examples

Run this code
if (FALSE) { # identical(Sys.getenv("IN_PKGDOWN"), "true")
trud_items()
}

Run the code above in your browser using DataLab