Skip to content

DeclareDesign

1.1.1Package record

Declare and Diagnose Research Designs

1packages dependsuggested by 6
35.3Kdownloads / year
92.9%test coverage
8/13flavors OK

Overview

About

Researchers can characterize and learn about the properties of research designs before implementation using `DeclareDesign`. Ex ante declaration and diagnosis of designs can help researchers clarify the strengths and limitations of their designs and to improve their properties, and can help readers evaluate a research strategy prior to implementation and without access to results. It can also make it easier for designs to be shared, replicated, and critiqued.

Changes in 1.1.1
  • Bug fix: replaced unexported rlang internal quo_get_env() with the exported get_env() in aaa.R and declare_potential_outcomes.R. The unexported function caused test failures on CRAN when rlang updated its export list.
  • Bug fix: replaced enquo() with substitute() in +.dd to correctly capture step expressions under the new rlang C API. Thanks to Lionel Henry (@lionel-) for the fix.
  • Added CausalQueries, rdrobust, and rdss to Suggests to satisfy CRAN dependency checks for tests that use those packages.
  • Made top-level test setup use soft package loads so checks pass when suggested packages are not locally installed.
  • Improved print.design() output: clearer labels, deduplication of parameter names across environments, and truncation of long values in the printed parameter table.
  • Added example to select_diagnosands() documentation showing use of the alpha argument.

From NEWS.md in the release

Install

Health

CRAN checks
5NOTE8OK
Check messages
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names:
  DeclareDesign/tests/testthat/test-describe_variable.R (.Names: 1)
  DeclareDesign/tests/testthat/test-diagnosands.R (.Label: 3)
  DeclareDesign/tests/testthat/test-estimands.R (.Names: 6, .Label: 1)
  DeclareDesign/tests/testthat/test-expand-design.R (.Dim: 4, .Dimnames: 4)
  DeclareDesign/tests/testthat/test-model.R (.Label: 1)
  DeclareDesign/tests/testthat/test-reshape-diagnosis.R (.Label: 1)
  DeclareDesign/tests/testthat/test-scaffolding.R (.Label: 1, .Names: 1)
'.Names' should be changed to 'names'.
'.Label' should be changed to 'levels'.
'.Dim' should be changed to 'dim'.
'.Dimnames' should be changed to 'dimnames'.

CRAN check page ↗

Slowest check: 6.4 min · r-oldrel-macos-x86_64
Status changes
  • NOTE8 OK, 5 NOTENow
  • NOTE10 OK, 3 NOTE2026-07-16
  • OK13 OK2026-05-06
  • ERROR13 OK, 1 ERROR2026-04-07
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.1.1
README· In the repository, left out of the releaseVignettes· In the repository, left out of the releaseNEWSYes · 100% structured · mentions 1.1.1Citation fileYes · cites a publicationWebsiteYes
Help pages
39 (8 internal)includes a package overview page
Examples that run
97%30 run in a plain check · 1 never run
Exported functions with examples
85%
Documented parameters
93%
Return-value docs
64%
Help pages citing references
0%

Downloads

35.3K
CRAN downloads in the past year
Rank #2,307 · ~97/day · ~2.9K/mo
Daily download trend is not available in this view yet.
2.9K30 days
7.3K90 days
35.3K1 year
Compare downloads with other packages →
Also on719 r2u11 autocran1.5K conda_forge

Repository

112Stars
15Forks
22Open issues
6Open PRs
14Releases
1,610Commits
13Commit identities
researchdesignrsimulations
1,610 commits · Last activity 2026-09-21 · +0.9% stars, 30d · Discussions: 2 posts
Responsiveness
How these are sampled
PRs merged (all time)
91%
Median days to close, 50 most recently updated closed issues
317
Median days to close, 50 most recently updated closed PRs
2

Stars over time

2025-09-26 · 1042026-10-12 · 112
PracticesBeta

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

Checks run against github.com/declaredesign/declaredesign 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

Governance and community (1)
Code of conduct
Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2018-05-28

Coverage (1)
Coverage reporting (Codecov)
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)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-08-08
    Commits: at least 6 crediting it in the message
Models named in its commits
  • Claude Opus 56 commits · Aug to 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
30 external dependencies (excludes base and recommended)

Installing DeclareDesign adds 17 packages (11 with compiled code, 8.9 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppEigen 1.7 MB, vctrs 1.0 MB.

Depends (4)
Imports (3)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Depends 1
Suggested by 6
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (5)
Author, Maintainer since 1.1.0 (2025)

Previously maintained by Graeme Blair (0.10.0 to 1.0.10).

Releases (19)

Pick two releases to compare their code metrics.

  • 1.1.1Latest
    record
    2026-04-28 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.1.0
    record
    2025-10-15 · diff ↗ ·
    added 1 export
    select_diagnosands
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.10
    record
    2024-04-21 · diff ↗
  • 1.0.8
    record
    2024-03-07 · diff ↗
  • 1.0.6
    record
    2024-01-17 · diff ↗
  • 1.0.4
    record
    2023-08-08 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.2
    record
    2023-01-10 · diff ↗
  • 1.0.0
    record
    2022-06-20 · diff ↗ ·
    added 1 export
    model_handler
  • R
    R 4.2.0 released · 2022-04-22
  • 0.30.0
    record
    2022-01-28 · diff ↗ ·
    removed 2 exports
    draw_assignment, draw_sample
    added 1 export
    pop.var
  • 0.28.0
    record
    2021-08-21 · diff ↗ ·
    removed 2 exports
    draw_inquiries, draw_inquiry
  • R
    R 4.1.0 released · 2021-05-18
Show 12 earlier eventsHide 12 earlier events
  • 0.26.0
    record
    2021-02-14 · diff ↗ ·
    removed 3 exports
    compare_design_estimands, reveal_outcomes, reveal_outcomes_handler
    added 8 exports
    compare_design_inquiries, declare_inquiries, declare_inquiry, declare_model, draw_estimand, draw_inquiries, draw_inquiry, vars
  • 0.24.0
    record
    2020-11-14 · diff ↗ ·
    removed 1 export
    get_estimands
    added 6 exports
    declare_measurement, declare_test, label_estimator, label_test, reveal_outcomes, tidy_try
  • R
    R 4.0.0 released · 2020-04-24
  • 0.22.0
    record
    2020-03-24 · diff ↗
  • 0.20.0
    record
    2019-09-10 · diff ↗ ·
    added 1 export
    compare_diagnoses
  • 0.18.0
    record
    2019-04-30 · diff ↗ ·
    added 6 exports
    compare_design_code, compare_design_data, compare_design_estimands, compare_design_estimates, compare_design_summaries, compare_designs
  • R
    R 3.6.0 released · 2019-04-26
  • 0.16.0
    record
    2019-01-26 · diff ↗ ·
    added 2 exports
    draw_assignment, draw_sample
  • 0.14.0
    record
    2019-01-07 · diff ↗
  • 0.12.0
    record
    2018-11-09 · diff ↗ ·
    removed 1 export
    declare_design
    added 5 exports
    diagnose_designs, draw_estimands, draw_estimates, simulate_designs, tidy
  • 0.10.0
    record
    2018-07-29
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2018-07-29
Total releases
19 / 8 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
127 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("DeclareDesign")

The package provides a citation file, so citation() returns the authors' own entry.

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 DeclareDesign version 1.1.1 [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