Skip to content

TrialSimulator

1.39.0Package record

Clinical Trial Simulator

0packages depend
4.3Kdownloads / year
85.8%test coverage
13/13flavors OK

Overview

About

Simulate phase II and/or phase III clinical trials. It supports various types of endpoints and adaptive strategies. Tools for carrying out graphical testing procedure and combination test under group sequential design are also provided.

Changes in 1.39.0

Bug fixes

  • fitLinear() and fitLogistic() (except scale = 'coefficient') no longer fail with "We are unable to reconstruct the data" when the right-hand side of formula transforms a covariate, e.g., log(x). The fitted rows are now passed to emmeans directly, so it no longer re-evaluates the model call, where the analysis data are not visible. The same re-evaluation caused a test failure on R-devel for Windows.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 14.4 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
Show 8 earlier changesHide 8 earlier changes
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK13 OK2026-04-29
  • ERROR13 OK, 1 ERROR2026-04-24
  • OK14 OK2026-04-23
  • ERROR13 OK, 1 ERROR2026-04-21
  • OK14 OK2026-04-16
  • ERROR13 OK, 1 ERROR2026-04-15
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.39.0
READMEYes · 515 wordsVignettesYes · 18 · dynamicNEWSYes · 100% structured · mentions 1.39.0Citation fileNoWebsiteYes · pkgdown
Help pages
57 (1 internal)
Examples that run
83%25 run in a plain check (2 of them under a condition) · 1 only when donttest examples are enabled (R CMD check --as-cran) · 2 never run · 2 hold no code
Exported functions with examples
60%
Documented parameters
100%
Return-value docs
96%
Help pages citing references
2%

Downloads

4.3K
CRAN downloads in the past year
Rank #6,865 · ~12/day · ~362/mo
Daily download trend is not available in this view yet.
51130 days
1.2K90 days
4.3K1 year
Compare downloads with other packages →
Also on262 r2u10 autocran

Repository

8Stars
5Forks
0Open issues
1Open PRs
5Releases
427Commits
1Commit identities
427 commits · Last activity 2026-10-16 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
1
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-08-07 · 52026-07-23 · 8
PracticesBeta

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

Checks run against github.com/zhangh12/trialsimulator on 2026-10-18.

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-16 · The repository has a site deploy workflow

pkgdown site last built 2026-10-16

Coverage (1)
Coverage reporting
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-04-10
    Named in .Rbuildignore: .claude
    Commits: at least 1 crediting it in the message
Models named in its commits
  • Claude Opus 5.51 commit · Oct 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
26 external dependencies (excludes base and recommended)

Installing TrialSimulator adds 42 packages (22 with compiled code, 24 MB of source tarballs). Heaviest: ggplot2 6.0 MB, Rcpp 1.8 MB, emmeans 1.7 MB.

Depends (1)
R >= 4.1.0
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Maintainer since 1.0.0 (2025), Author
Releases (11)

Pick two releases to compare their code metrics.

  • 1.39.0Latest
    record
    2026-10-09 · current release · diff ↗ ·
    removed 1 export
    set_duration
  • 1.35.8
    record
    2026-09-04 · diff ↗ ·
    added 3 exports
    stop_followup, update_accrual_rate, update_milestone
  • 1.20.1
    record
    2026-06-15 · diff ↗ ·
    added 1 export
    crossover
  • 1.18.4
    record
    2026-05-13 · diff ↗ ·
    added 2 exports
    Surv, strata
  • 1.17.1
    record
    2026-04-27 · diff ↗ ·
    added 1 export
    CorrelatedPfsAndOs2
  • R
    R 4.6.0 released · 2026-04-24
  • 1.16.0
    record
    2026-04-13 · diff ↗ ·
    added 5 exports
    Regimens, expandRegimen, qPiecewiseExponential, regimen, solvePiecewiseConstantExponentialDistribution
  • 1.10.1
    record
    2026-02-15 · diff ↗
  • 1.10.0
    record
    2026-02-15 · diff ↗ ·
    added 6 exports
    add_arms, remove_arms, resize, set_duration, update_generator, update_sample_ratio
  • 1.7.0
    record
    2025-12-19 · diff ↗
  • 1.3.0
    record
    2025-09-26 · diff ↗
  • 1.0.0
    record
    2025-09-03
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-09-03
Total releases
11 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
4.2 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("TrialSimulator")
Zhang, H. (2026). TrialSimulator: Clinical Trial Simulator (Version 1.39.0) [Computer software]. https://doi.org/10.32614/CRAN.package.TrialSimulator

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

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