Skip to content

RiskScorescvd

Cardiovascular Risk Scores Calculator

v0.3.1 · Aug 27, 2025 · MIT + file LICENSE

Description

A tool to calculate Cardiovascular Risk Scores in large data frames as published in Perez-Vicencio, et al (2024) <doi:10.1136/openhrt-2024-002755>. Cardiovascular risk scores are statistical tools used to assess an individual's likelihood of developing a cardiovascular disease based on various risk factors, such as age, gender, blood pressure, cholesterol levels, and smoking. Here we bring together the six most commonly used in the emergency department. Using 'RiskScorescvd', you can calculate all the risk scores in an extended dataset in seconds. PCE (ASCVD) described in Goff, et al (2013) <doi:10.1161/01.cir.0000437741.48606.98>. EDACS described in Mark DG, et al (2016) <doi:10.1016/j.jacc.2017.11.064>. GRACE described in Fox KA, et al (2006) <doi:10.1136/bmj.38985.646481.55>. HEART is described in Mahler SA, et al (2017) <doi:10.1016/j.clinbiochem.2017.01.003>. SCORE2/OP described in SCORE2 working group and ESC Cardiovascular risk collaboration (2021) <doi:10.1093/eurheartj/ehab309>. TIMI described in Antman EM, et al (2000) <doi:10.1001/jama.284.7.835>. SCORE2-Diabetes described in SCORE2-Diabetes working group and ESC Cardiovascular risk collaboration (2023) <doi:10.1093/eurheartj/ehab260>. SCORE2/OP with CKD add-on described in Kunihiro M et al (2022) <doi:10.1093/eurjpc/zwac176>.

Downloads

CRAN

660

Last 30 days

5112th

2.1K

Last 90 days

7.8K

Last year

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

r2u CRAN

0

Last 30 days

24

Last 90 days

105

Last year

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

autoCRAN

1

Last 7 days

10

Last 30 days

0

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 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

8,806

Files

71

Compiled share

0%

Has compiled src

No

Language breakdown

R 4,066 (46.2%)Tests 1,940 (22%)Docs 2,492 (28.3%)Vignettes 308 (3.5%)

API

Exported functions

19

Internal functions

0

Recent export changes

v0.3.1+2 CAD_Consortium_func, SCORE2_Asia_Pacific
v0.2.0+4 SCORE2_CKD, SCORE2_CKD_scores, SCORE2_Diabetes +1 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.48

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

94.7%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

100%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

3

First release

2023-06-28

Latest release

2025-08-27

Avg cadence

396 days

Cold removal rate

Dep drift

0

LOC over versions

v0.1.0: 4,396 LOCv0.2.0: 6,594 LOCv0.3.1: 8,806 LOC

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

Reverse Dependencies (1)

suggests

Dependency Network

Dependencies Reverse dependencies dplyr PooledCohort HealthMarkers RiskScorescvd

Version History

4 tracked
new 0.3.1 Mar 10, 2026
updated 0.3.1 ← 0.2.0 diff Aug 27, 2025
updated 0.2.0 ← 0.1.0 diff Jun 26, 2024
new 0.1.0 Jun 27, 2023