Skip to content

phsopendata

Extract from the Scottish Health and Social Care Open Data Platform

v1.1.0 · May 6, 2026 · MIT + file LICENSE

Description

Extract and interact with data from the Scottish Health and Social Care Open Data platform <https://www.opendata.nhs.scot>.

Downloads

CRAN

223

Last 30 days

22014th

681

Last 90 days

21.2K

Last year

Trend: -14.2% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

25

Last 90 days

92

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

3

Last 7 days

8

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 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-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 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 25, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 24, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘phsopendata-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get_dataset_additional_info
> ### Title: get a datasets additional info
> ### Aliases: get_dataset
...[truncated]...
rl::curl_fetch_memory(url, handle = handle) : 
  Failure when receiving data from the peer [www.opendata.nhs.scot]:
Recv failure: Connection reset by peer
Calls: withAutoprint ... get_dataset_additional_info -> phs_GET -> <Anonymous>
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code intelligence has not been computed for this package yet.

Code

Structure

Lines of code

3,102

Files

61

Compiled share

0%

Has compiled src

No

Language breakdown

R 1,403 (45.2%)Tests 1,337 (43.1%)Docs 362 (11.7%)

API

Exported functions

8

Internal functions

14

Recent export changes

v1.0.0+8 %>%, get_dataset, get_dataset_additional_info +5 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.95

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

87.5%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

80%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

5

First release

2025-09-01

Latest release

2026-05-06

Avg cadence

75 days

Cold removal rate

Dep drift

2

LOC over versions

v1.0.0: 2,417 LOCv1.0.1: 2,463 LOCv1.0.2: 2,571 LOCv1.0.3: 2,606 LOCv1.1.0: 3,102 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies cli dplyr httr lifecycle magrittr purrr readr rlang stringdist tibble phsopendata

Version History

6 tracked
updated 1.1.0 ← 1.0.3 diff May 6, 2026
new 1.0.3 Mar 10, 2026
updated 1.0.3 ← 1.0.2 diff Feb 4, 2026
updated 1.0.2 ← 1.0.1 diff Jan 28, 2026
updated 1.0.1 ← 1.0.0 diff Nov 4, 2025
new 1.0.0 Aug 31, 2025