Skip to content
simtrial needs lt, which CRAN will archive unless its check problems are fixed by Nov 7.

simtrial

1.1.0Package record

Clinical Trial Simulation

1packages dependsuggested by 2
8.8Kdownloads / year
79.1%test coverage
13/13flavors OK

Overview

About

Provides some basic routines for simulating a clinical trial. The primary intent is to provide some tools to generate trial simulations for trials with time to event outcomes. Piecewise exponential failure rates and piecewise constant enrollment rates are the underlying mechanism used to simulate a broad range of scenarios such as those presented in Lin et al. (2020) doi:10.1080/19466315.2019.1697738. However, the basic generation of data is done using pipes to allow maximum flexibility for users to meet different needs.

Changes in 1.1.0

Major changes

  • The heavy **gt** dependency is replaced by the lightweight **lt** package for rendering summary tables. The lt() generic is re-exported so summary() output can be rendered with lt() after only loading simtrial. as_gt() is deprecated but kept for one release; it still returns a gt_tbl object and now requires the suggested **gt** package to be installed. (#371, thanks to @yihui)

Documentation

  • Expanded the details for sim_fixed_n() and updated vignettes for the current package interface (#358, thanks to @LittleBeannie).

Tests

  • Hardened sim_gs_n() and summary.simtrial_gs_wlr() tests against upstream **gsDesign2** changes (#368, #369, thanks to @jdblischak).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 12.6 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-10-17
  • WARNING12 OK, 1 WARNING2026-10-01
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
Show 4 earlier changesHide 4 earlier changes
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-04-22
  • ERROR13 OK, 1 ERROR2026-04-18
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.1.0
READMEYes · 406 wordsVignettesYes · 11 · dynamicNEWSYes · 100% structured · mentions 1.1.0Citation fileNoWebsiteYes · pkgdown
Help pages
38 (5 internal)includes a package overview page
Examples that run
97%35 run in a plain check (7 of them under a condition) · 1 never run
Exported functions with examples
96%
Documented parameters
80%
Return-value docs
96%
Help pages citing references
26%

Downloads

8.8K
CRAN downloads in the past year
Rank #4,583 · ~24/day · ~731/mo
Daily download trend is not available in this view yet.
62230 days
1.9K90 days
8.8K1 year
Compare downloads with other packages →
Also on601 r2u1 autocran

Repository

41Stars
14Forks
7Open issues
0Open PRs
11Releases
1,159Commits
19Commit identities
License file reads as GPL-3.0 · 1,159 commits · Last activity 2026-10-01 · +5.1% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
97%
Median days to close, 50 most recently updated closed issues
17
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-10-06 · 262026-10-14 · 41
PracticesBeta

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

Checks run against github.com/merck/simtrial on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

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

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-10-01 · The repository has a site deploy workflow

pkgdown site last built 2026-10-01

Coverage (1)
Coverage reporting (Codecov)
Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 2 practices
Automation and maintenance (1)
Dependabot
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-05-18
    Pull request it wrote: opened by a project member
    Commits: at least 2 crediting it in the message
Models named in its commits
  • Claude Opus 4.61 commit · May 2026
  • Claude Opus 4.81 commit · Sep 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
20 external dependencies (excludes base and recommended)

Installing simtrial adds 14 packages (6 with compiled code, 11 MB of source tarballs). Heaviest: data.table 5.7 MB, Rcpp 1.8 MB, mvtnorm 1.0 MB.

Depends (1)
R >= 4.1.0
Imports (11)
LinkingTo (1)
Enhances (0)
none
Dependencies facing archival

CRAN will archive these unless their check problems are fixed by the date shown. This package needs each one to install.

  • ltfix by Nov 7
Reverse dependencies
1direct
0indirect
Imports 1
Suggested by 2
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (17)
Author, Maintainer since 0.3.2 (2023)
Contributor
Contributor · added in 1.0.0
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Show 4 more contributorsHide 4 contributors
Contributor
Contributor
Contributor
Contributor
Releases (7)

Pick two releases to compare their code metrics.

  • 1.1.0Latest
    record
    2026-09-09 · current release · diff ↗ ·
    added 1 export
    lt
  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.2
    record
    2025-11-20 · diff ↗
  • 1.0.1
    record
    2025-09-11 · diff ↗
  • 1.0.0
    record
    2025-06-11 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.4.2
    record
    2024-11-18 · diff ↗ ·
    added 1 export
    as_gt
  • 0.4.1
    record
    2024-05-03 · diff ↗ ·
    removed 4 exports
    early_zero_weight, fh_weight, mb_weight, pvalue_maxcombo
    added 11 exports
    create_cut, create_test, early_zero, fh, maxcombo, mb, milestone, multitest, rmst, sim_gs_n, wlr
  • R
    R 4.4.0 released · 2024-04-24
  • 0.3.2
    record
    2023-12-11
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2023-12-11
Total releases
7 / 3 yrs
License
GPL-3 OSI
Minimum R
≥ 4.1.0
Bundled data
14 KB / 7 files
Download size
1.1 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("simtrial")
Zhao, Y., Merck & Co., Inc., Rahway, NJ, USA and its affiliates, Anderson, K., Blischak, J., Cui, Y., Leon, L., Li, X., Ling, L., Manschot, C., Shirazi, A., Wang, R., Xiao, N., Yang, J., Yang, P., Zhang, Y., Zhou, H., & Zhu, Y. (2026). simtrial: Clinical Trial Simulation (Version 1.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.simtrial

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

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