Skip to content

CohortGenerator

1.1.1

Cohort Generation for the OMOP Common Data Model

1packages depend
9.2Kdownloads / year
94.6%test coverage
13/13checks pass

Overview

About
Maintained by Anthony SenaFirst published 2024-09-1510 releasesCRAN page ↗GitHub ↗

Generate cohorts and subsets using an Observational Medical Outcomes Partnership (OMOP) Common Data Model (CDM) Database. Cohorts are defined using 'CIRCE' (https://github.com/ohdsi/circe-be) or SQL compatible with 'SqlRender' (https://github.com/OHDSI/SqlRender).

Install

Health

CRAN checks
13OK
Slowest check: 7.4 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.76
94.6%
Coverage · measured lines
100%
Documentation · exports
15
Dependencies · direct
Check history
  • OK2026-06-22
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-21
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-24
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 6 earlier snapshots
  • ERROR2026-05-17
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-15
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-05-13
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-06
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-04
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 227 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 33% structuredCode of conductNoContributing guideNo
Examples that run
25%
Documented parameters
99%
Return-value docs
41%
References docs
0%

Downloads

9.2K
CRAN downloads in the past year
Rank #6,776 · ~25/day · ~769/mo
Daily download trend is not available in this view yet.
49130 days
1.5K90 days
9.2K1 year
Compare downloads with other packages →
Also on253 r2u

Repository

Repository
15Stars
15Forks
20Open issues
3Open PRs
23Releases
198Commits
8Contributors
hades
198 commits · Last activity 2026-07-10 · +7.1% stars, 30d

Stars over time

2025-04-02 · 142026-07-07 · 14

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/ohdsi/cohortgenerator on 2026-07-19.

Continuous integration (1)
GitHub Actions
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
23 external dependencies (excludes base and recommended)
Depends (3)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

Code Composition
R 12,269 (71%)Rd 3,844 (22%)Vignettes 1,018 (6%)Other 31 (0%)
Code characteristics
Object systems
R611
Cyclomatic complexity
2.0 median / 15 max
Test cases
158 / 0.76 per code line

Test coverage

Line coverage

95%

Expression

94.3%

Tests / Examples

94.6% / – ex

Functions

97 59 exported

Complexity

3.6 avg / 15 max

Call network

97 nodes / 150 edges

Loading call graph…

Lowest coverage

97 functions
FunctionCycloCoverage
addUnionCohortDefinition exp10%
createLimitSubset exp10%
createUnionCohortTemplate exp10%
loadTemplateFromJson10%
saveCohortTemplateDefinitions10%
loadTemplateDefinitionsFolder263%

People & History

People (6)
Maintainer (1)
Author, Maintainer
Authors (5)
Author, Maintainer
Author · added in 0.12.0
Copyright holders (1)
Package Timeline

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

  • 1.1.1Latest
    2026-07-11 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.1.0
    2026-03-03 · diff ↗
  • 1.0.2
    2026-02-10 · diff ↗
  • 1.0.1
    2025-11-17 · diff ↗
  • 1.0.0
    2025-11-12 · diff ↗
  • 0.12.2
    2025-09-11 · diff ↗
  • 0.12.1
    2025-09-05 · diff ↗
  • 0.12.0
    2025-07-31 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.11.2
    2024-09-30 · diff ↗
  • 0.11.1
    2024-09-15
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-09-15
Total releases
10 / 2 yrs
License
Apache License
Minimum R
≥ 4.1.0
Bundled data
0.7 KB / 2 files
Download size
1.0 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →