Skip to content

preventr

0.12.0

An Implementation of the PREVENT and Pooled Cohort Equations

1packages depend
6.8Kdownloads / year
87.9%test coverage
13/13checks pass

Overview

About
Maintained by Martin MayerFirst published 2024-02-264 releasesCRAN page ↗GitHub ↗

Implements the American Heart Association Predicting Risk of cardiovascular disease EVENTs (PREVENT) equations from Khan SS, Matsushita K, Sang Y, and colleagues (2023) doi:10.1161/CIRCULATIONAHA.123.067626, with optional comparison with their de facto predecessor, the Pooled Cohort Equations from the American Heart Association and American College of Cardiology (2013) doi:10.1161/01.cir.0000437741.48606.98 and the revision to the Pooled Cohort Equations from Yadlowsky and colleagues (2018) doi:10.7326/M17-3011.

Install

Health

CRAN checks
13OK
Slowest check: 9.4 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 12.99
87.9%
Coverage · measured lines
100%
Documentation · exports
2
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-07-03
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-06-08
    0 OK · 13 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-06-07
    0 OK · 12 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
Show 1 earlier snapshots
  • NOTE2026-03-10
    3 OK · 11 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,463 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

6.8K
CRAN downloads in the past year
Rank #3,696 · ~19/day · ~563/mo
Daily download trend is not available in this view yet.
60630 days
2.5K90 days
6.8K1 year
Compare downloads with other packages →
Also on104 r2u21 autocran

Repository

Repository
44Stars
7Forks
0Open issues
0Open PRs
4Releases
12Commits
1Contributors
12 commits · Last activity 2026-06-24 · +2.3% stars, 30d

Stars over time

2025-08-14 · 252026-08-07 · 44

Repository practices

Upstream repositoryBeta

4 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/martingmayer/preventr on 2026-08-16.

CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
Imports (2)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Copyright holders (1)
Author, Maintainer, Copyright holder
Package Timeline

4 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 0.12.0Latest
    2026-06-24 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.11.0
    2025-01-27 · diff ↗
  • 0.10.0
    2024-08-18 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.9.0
    2024-02-26
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2024-02-26
Total releases
4 / 2 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
799 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("preventr")
Mayer, M. (2026). preventr: An Implementation of the PREVENT and Pooled Cohort Equations (Version 0.12.0) [Computer software]. https://doi.org/10.32614/CRAN.package.preventr

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for preventr version 0.12.0 [Data set]. HJJB, LLC. Data release v2026-08-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy