Skip to content

rcprd

Extraction and Management of Clinical Practice Research Datalink Data

v0.0.2 · Sep 7, 2025 · MIT + file LICENSE

Description

Simplify the process of extracting and processing Clinical Practice Research Datalink (CPRD) data in order to build datasets ready for statistical analysis. This process is difficult in 'R', as the raw data is very large and cannot be read into the R workspace. 'rcprd' utilises 'RSQLite' to create 'SQLite' databases which are stored on the hard disk. These are then queried to extract the required information for a cohort of interest, and create datasets ready for statistical analysis. The processes follow closely that from the 'rEHR' package, see Springate et al., (2017) <doi:10.1371/journal.pone.0171784>.

Downloads

572

Last 30 days

6608th

1.8K

Last 90 days

7.3K

Last year

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

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 Jun 9, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 8, 2026
WARNING r-devel-linux-x86_64-debian-gcc

Rd files

cannot open the connection
problem found in ‘extract_txt_linkage.Rd’
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 7, 2026
ERROR r-devel-linux-x86_64-debian-gcc

PDF version of manual

Rd conversion errors:
Converting parsed Rd's to LaTeX ..Warning in file(out, "wt") :
  cannot open file '/tmp/RtmpIUUXvG/file3c8b1374432e8f': No space left on device
Warning in file(con, "r") :
  cannot open file '/tmp/RtmpIUUXvG/file3c8b1374432e8f': No such file or directory
Error in file(con, "r") : cannot open the connection
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies dplyr data.table fastmatch lubridate RSQLite stringr rcprd

Version History

3 tracked
new 0.0.2 Mar 10, 2026
updated 0.0.2 ← 0.0.1 diff Sep 7, 2025
new 0.0.1 Nov 12, 2024