Skip to content

DTEAssurance

Assurance Methods for Clinical Trials with a Delayed Treatment Effect

v1.1.0 · Dec 2, 2025 · MIT + file LICENSE

Description

Provides functions for planning clinical trials subject to a delayed treatment effect using assurance-based methods. Includes two 'shiny' applications for interactive exploration, simulation, and visualisation of trial designs and outcomes. The methodology is described in: Salsbury JA, Oakley JE, Julious SA, Hampson LV (2024) "Assurance methods for designing a clinical trial with a delayed treatment effect" <doi:10.1002/sim.10136>, Salsbury JA, Oakley JE, Julious SA, Hampson LV (2024) "Adaptive clinical trial design with delayed treatment effects using elicited prior distributions" <doi:10.48550/arXiv.2509.07602>.

Downloads

CRAN

259

Last 30 days

18281st

565

Last 90 days

2K

Last year

Trend: +89.1% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

20

Last 90 days

83

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

1

Last 7 days

9

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘SHELF’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

4,721

Files

67

Compiled share

0%

Has compiled src

No

Language breakdown

R 2,303 (48.8%)Tests 1,423 (30.1%)Docs 995 (21.1%)

API

Exported functions

13

Internal functions

7

Recent export changes

v1.1.0+6 BPP_func, assurance_adaptive_shiny_app, calc_dte_assurance_adaptive +3 more  −2 assurance_GSD_shiny_app, calc_dte_assurance_interim
v1.0.0+9 %>%, add_recruitment_time, assurance_GSD_shiny_app +6 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.62

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

92.3%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

3

First release

2025-10-14

Latest release

2025-12-02

Avg cadence

25 days

Cold removal rate

100%

Dep drift

0

LOC over versions

v1.0.0: 2,211 LOCv1.0.1: 2,247 LOCv1.1.0: 4,721 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies SHELF shiny survival nleqslv nph nphRCT dplyr rjags rpact magrittr rlang future.apply DTEAssurance

Version History

4 tracked
new 1.1.0 Mar 10, 2026
updated 1.1.0 ← 1.0.1 diff Dec 1, 2025
updated 1.0.1 ← 1.0.0 diff Oct 23, 2025
new 1.0.0 Oct 13, 2025