R Observatory
Search
install.packages("CohortConstructor")
CRAN 30-day downloads, method
1,283+3% up on the 30 days before, the better direction
Dependent packages, method
410 more suggest it
Test coverage, method
77%of lines run by tests

Create and manipulate study cohorts in data mapped to the Observational Medical Outcomes Partnership Common Data Model.

Maintainer
Edward Burn
Latest release
30 Mar 2026
First release
1 Jun 2024

Compare with another package

More details
Releases
16
Needs compilation
No
Needs R
>= 4.1
Config/testthat/edition
3
Config/testthat/parallel
true
LazyData
true
RoxygenNote
7.3.3
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("CohortConstructor")
APA
Burn, E., Alcalde-Herraiz, M., Català, M., Chen, X., Du, M., Guo, Y., Lopez-Guell, K., Mercade-Besora, N., & Rowlands, E. (2026). CohortConstructor: Build and Manipulate Study Cohorts Using a Common Data Model (Version 0.6.3) [Computer software]. https://doi.org/10.32614/CRAN.package.CohortConstructor
About

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 CohortConstructor version 0.6.3 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    0.6.3
    Time taken
    369 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    0.6.3
    Time taken
    282 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    0.6.3
    Time taken
    272 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    0.6.3
    Time taken
    246 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    0.6.3
    Time taken
    312 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    0.6.3
    Time taken
    78 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    0.6.3
    Time taken
    286 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    0.6.3
    Time taken
    431 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    0.6.3
    Time taken
    346 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    0.6.3
    Time taken
    352 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    0.6.3
    Time taken
    77 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    0.6.3
    Time taken
    362 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    0.6.3
    Time taken
    303 s
  • 13 OK

Over time

No change since 30 Sep 2026

As a list (13)
ChangedWorst statusOKNotesWarningsErrors
30 Sep 2026OK13000
4 Sep 2026Error12001
5 Aug 2026OK13000
1 Aug 2026Note12100
9 Jun 2026OK13000
8 Jun 2026Error12001
24 May 2026OK13000
17 May 2026Error12001
15 May 2026OK13000
13 May 2026Error12001
2 May 2026OK13000
25 Apr 2026Error11001
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
1,317+3.1% up on the 30 days before, the better directionIt is the sum of 3 channels: CRAN, r2u and autoCRAN.

CRAN rank

3,274 of 26,530

CRAN

1,283 downloads in the last 30 days

Rank
3,274 of 26,530
Change
+3% up on the 30 days before, the better direction

It is in the total. Take it out

r2u

24 downloads in the last 30 days

Rank
4,355 of 30,526
Change
+118% up on the 30 days before, the better direction

It is in the total. Take it out

autoCRAN

10 downloads in the last 30 days

Rank
4,260 of 29,212
Change
−50% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
12
Dependent packages
4
Suggested by
10
Needs (12)
Installing it adds
29 packages, 24.9 MB of source
Of those, need compilation
14
Optional extras (24)
Dependent packages (4)
PackageTitleDownloads in 30 days
OmopSketchCharacterise Tables of an OMOP Common Data Model Instance902
PhenotypeRAssess Study Cohorts Using a Common Data Model700
MeasurementDiagnosticsDiagnostics for Lists of Codes Based on Measurements501
CohortContrastEnrichment Analysis of Clinically Relevant Concepts in Common Data Model Cohort Data302
Functions
141
Public exports
52
Lines of R code
9,048
Median complexity
2
Functions (141)
Size and composition

Lines by kind (24,240)

KindLinesShare
R code9,04837%
Tests10,26842%
Documentation2,90312%
Guides2,0218%

Lines by language

LanguageLinesShare
R19,31680%
Rd2,90312%
Vignettes2,0218%

Languages are counted from file extensions.

Files
202
R functions
141
Object systems
R6: 1 classes
Complexity
Median
2
Mean
3.69
Highest
22
Median lines per function
26
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
141
Calls
260
Unconnected
5
Groups
2
Growth (16 releases)
Total lines by release
11,652 on 1 Jun 202424,240 on 30 Mar 2026
Release changes

Coverage was measured, but at least one test failed during the run.

Lines run by tests
77.3%
Expressions run by tests
78.1%
Test cases
112
Exports named in tests
94.2%
Coverage by file (34)
Coverage run
Lines counted
5,468
Lines the tests ran
4,228
Tests passed
No
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
112
Lines of tests
10,268
Test lines per line of code
1.13
Exports documented
100%
Arguments documented
99.3%
Return value documented
95.6%
Help pages with examples
66.2%
Examples run in checks
0%
Guides (13)
Other documentation
README
Yes, 540 words
Release notes file
Yes
Help pages
65
Lines of documentation
2,903

4 datasets, 1 can be loaded by name

DatasetSizeColumns
benchmarkDataBenchmarking resultslength 7
codeslength 58
domainsData10 × 6domain_id, table, concept, source, start, end
jsons15 × 5cohort_definition_id, cohort_name and 3 more
Earlier names (2)
  • Kim Lopez
  • Marti Catala

OHDSI / cohortconstructor on github.com

Stars
10no change on 30 days ago
Forks
3
Open issues
66
Last commit
15 Aug 2026
Activity
Commits
1,289
Open pull requests
6
Tagged releases
10
Latest tagged release
v0.6.3, 30 Mar 2026
In development
Default branch at 0.6.3.9000, ahead of CRAN 0.6.3 (checked 2026-10-25)
Issues closed in
44 days (median)
Pull requests closed in
1 day (median)
Pull requests merged
95%
Created
20 Sep 2023
Licence file reads as
Apache-2.0
Development practices (11)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux
Docs sourceREADME.Rmd, pkgdown
GitHub Pages site last deployed 2026-08-15
The repository has a site deploy workflow
pkgdown site last built 2026-08-15
CoverageCoverage reporting (Codecov)
Reproducibility and dev environmentdata-raw/
CRAN release processcran-comments.md, CRAN-SUBMISSION
Lint, format, editorRStudio project

Method, repository practices

Across OHDSI

R releases
  • On CRAN
  • Release
VersionReleasedR
0.6.3 current30 Mar 20264.5.3
0.6.28 Mar 20264.5.2
0.6.123 Dec 20254.5.2
0.6.031 Oct 20254.5.2
0.5.030 Jul 20254.5.1
0.4.08 May 20254.5.0
0.3.516 Feb 20254.4.2
0.3.417 Jan 20254.4.2
Earlier versions (8)
VersionReleasedR
0.3.326 Nov 20244.4.2
0.3.211 Nov 20244.4.2
0.3.18 Oct 20244.4.1
0.3.025 Sep 20244.4.1
0.2.231 Jul 20244.4.1
0.2.114 Jun 20244.4.1
0.2.012 Jun 20244.4.0
0.1.01 Jun 20244.4.0