Skip to content

TestGenerator

0.8.0Package record

Integration Unit Tests for Pharmacoepidemiological Studies

0packages dependsuggested by 1
6.9Kdownloads / year
55.0%test coverage
13/13flavors OK

Overview

About

An R interface to load testing data in the 'OMOP' Common Data Model ('CDM'). An input file, csv or xlsx, can be converted to a 'CDMConnector' object. This object can be used to execute and test studies that use the 'CDM' https://www.ohdsi.org/data-standardization/.

Changes in 0.8.0
  • Fixed missing cdm_schema attribute in cdm_reference when using remote databases (e.g., SQL Server).
  • Implemented dynamic, unique schema names (prefixed with cdm_testgenerator_) to prevent database collisions.
  • Fixed patientsCDM() to ensure the correct remote CDM reference is returned during the injection process.
  • Added regression tests to verify cdm_schema attribute presence and CohortConstructor compatibility on SQL Server.
  • Removed DARWIN_ prefix from environment variables to run tests on SQL Server and Postgres.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.5 min · r-release-macos-x86_64
Status changes
  • OK13 OK2026-09-30
  • ERROR12 OK, 1 ERROR2026-09-04
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
Show 6 earlier changesHide 6 earlier changes
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK13 OK2026-05-24
  • ERROR12 OK, 1 ERROR2026-05-17
  • OK13 OK2026-05-15
  • ERROR12 OK, 1 ERROR2026-05-13
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.8.0
READMEYes · 388 wordsVignettesYes · 3 · staticNEWSYes · 100% structured · mentions 0.8.0Citation fileNoWebsiteYes · pkgdown
Help pages
11
Examples that run
50%3 run in a plain check · 2 only when donttest examples are enabled (R CMD check --as-cran) · 1 never run
Exported functions with examples
67%
Documented parameters
97%
Return-value docs
100%
Help pages citing references
0%

Downloads

6.9K
CRAN downloads in the past year
Rank #6,576 · ~19/day · ~571/mo
Daily download trend is not available in this view yet.
59530 days
1.3K90 days
6.9K1 year
Compare downloads with other packages →
Also on113 r2u4 autocran

Repository

0Stars
2Forks
0Open issues
0Open PRs
5Releases
296Commits
6Commit identities
License file reads as Apache-2.0 · 296 commits · Last activity 2026-05-18
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
7
Median days to close, 50 most recently updated closed PRs
not measured

Forks over time

2025-06-26 · 12026-07-07 · 2
PracticesBeta

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

Checks run against github.com/darwin-eu/testgenerator on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-05-18 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting
Reproducibility and dev environment (1)
renv
Show all practicesHide 2 practices
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
26 external dependencies (excludes base and recommended)

Installing TestGenerator adds 80 packages (42 with compiled code, 50 MB of source tarballs). Heaviest: stringi 11 MB, duckdb 4.6 MB, CDMConnector 4.0 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

Datasets

People & History

People (4)
Author, Maintainer since 0.8.0 (2026)
Author
Author
Author · added in 0.3.3

Previously maintained by Ger Inberg (0.4.0 to 0.7.0) and Cesar Barboza (0.2.5 to 0.3.3).

Releases (8)

Pick two releases to compare their code metrics.

  • 0.8.0Latest
    record
    2026-04-30 · current release · diff ↗ ·
    added 1 export
    useGithubAction
  • 0.7.0
    record
    2026-04-30 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.6.0
    record
    2026-04-16 · diff ↗ ·
    added 1 export
    cleanupTestCdm
  • 0.5.0
    record
    2026-01-14 · diff ↗
  • unarchivedReturned to CRAN
    2025-05-27
  • 0.4.0
    record
    2025-05-27 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • archivedRemoved from CRAN
    2025-03-31
    issues were not corrected despite reminders
  • 0.3.3
    record
    2024-11-08 · diff ↗ ·
    added 1 export
    generateTestTables
  • 0.3.1
    record
    2024-05-28 · diff ↗ ·
    added 4 exports
    downloadTestData, graphCohort, readPatients.csv, readPatients.xl
  • R
    R 4.4.0 released · 2024-04-24
  • 0.2.5
    record
    2024-02-01
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2024-02-01
Total releases
8 / 2 yrs
License
Apache License (>= 2)
Minimum R
≥ 4.1.0
Download size
733 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("TestGenerator")
Barboza, C., Black, A., Inberg, G., & Nika, I. (2026). TestGenerator: Integration Unit Tests for Pharmacoepidemiological Studies (Version 0.8.0) [Computer software]. https://doi.org/10.32614/CRAN.package.TestGenerator

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

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

From data release v2026-10-19, 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