Skip to content
CRAN requires the check problems on this package to be fixed before Nov 1 or it will be archived. See the check details

DesignLibrary

0.1.10Package record

Library of Research Designs

0packages dependsuggested by 1
28.6Kdownloads / year
99.8%test coverage
4/13flavors OK

Overview

About

A simple interface to build designs using the package 'DeclareDesign'. In one line of code, users can specify the parameters of individual designs and diagnose their properties. The designers can also be used to compare performance of a given design across a range of combinations of parameters, such as effect size, sample size, and assignment probabilities.

Changes in 0.1.10
  • Further updates for syntax for DeclareDesign v. 0.28.0

From NEWS.md in the release

Install

Health

CRAN checks
9ERROR4OK
Check messages
ERRORtestsr-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, r-oldrel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-windows-x86_64

r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang

Running ‘testthat.R’ [11s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(DesignLibrary)
  Loading required package: DeclareDesign
  Loading required package: randomizr
  Loading required package: fabricatr
  Loading required package: estimatr
  > 
  > test_check(package = "DesignLibrary")
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  Saving _problems/test_designers-37.R
  Saving _problems/test_designers-128.R
  Saving _problems/test_diagnose_designers-6.R
  [ FAIL 3 | WARN 18 | SKIP 0 | PASS 323 ]
  
  ══ Failed tests ═══════════════
...[truncated]...
   └─DeclareDesign (local) `<fn>`(design = dots[[1L]][[2L]], sims = dots[[2L]][[2L]], future.seed = dots[[3L]][[1L]])
    5.         ├─base::withCallingHandlers(...)
    6.         ├─base::suppressWarnings(...)
    7.         │ └─base::withCallingHandlers(...)
    8.         └─DeclareDesign:::future_lapply(...)
    9.           └─base::lapply(...)
   10.             └─DeclareDesign (local) FUN(X[[i]], ...)
   11.               ├─DeclareDesign:::run_design_internal(design)
   12.               └─DeclareDesign:::run_design_internal.design(design)
   13.                 └─DeclareDesign:::next_step(step, current_df, i)
   14.                   └─base::tryCatch(...)
   15.                     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   16.                       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   17.                         └─value[[3L]](cond)
  
  [ FAIL 3 | WARN 18 | SKIP 0 | PASS 323 ]
  Error:
  ! Test failures.
  Execution halted

r-devel-linux-x86_64-debian-clang

Running ‘testthat.R’ [17s/22s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(DesignLibrary)
  Loading required package: DeclareDesign
  Loading required package: randomizr
  Loading required package: fabricatr
  Loading required package: estimatr
  > 
  > test_check(package = "DesignLibrary")
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  Saving _problems/test_designers-37.R
  Saving _problems/test_designers-128.R
  Saving _problems/test_diagnose_designers-6.R
  [ FAIL 3 | WARN 18 | SKIP 0 | PASS 323 ]
  
  ══ Failed tests ═══════════════
...[truncated]...
   └─DeclareDesign (local) `<fn>`(design = dots[[1L]][[2L]], sims = dots[[2L]][[2L]], future.seed = dots[[3L]][[1L]])
    5.         ├─base::withCallingHandlers(...)
    6.         ├─base::suppressWarnings(...)
    7.         │ └─base::withCallingHandlers(...)
    8.         └─DeclareDesign:::future_lapply(...)
    9.           └─base::lapply(...)
   10.             └─DeclareDesign (local) FUN(X[[i]], ...)
   11.               ├─DeclareDesign:::run_design_internal(design)
   12.               └─DeclareDesign:::run_design_internal.design(design)
   13.                 └─DeclareDesign:::next_step(step, current_df, i)
   14.                   └─base::tryCatch(...)
   15.                     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   16.                       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   17.                         └─value[[3L]](cond)
  
  [ FAIL 3 | WARN 18 | SKIP 0 | PASS 323 ]
  Error:
  ! Test failures.
  Execution halted

r-devel-linux-x86_64-fedora-gcc

Running ‘testthat.R’ [13s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(DesignLibrary)
  Loading required package: DeclareDesign
  Loading required package: randomizr
  Loading required package: fabricatr
  Loading required package: estimatr
  > 
  > test_check(package = "DesignLibrary")
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  Saving _problems/test_designers-37.R
  Saving _problems/test_designers-128.R
  Saving _problems/test_diagnose_designers-6.R
  [ FAIL 3 | WARN 18 | SKIP 0 | PASS 323 ]
  
  ══ Failed tests ═══════════════
...[truncated]...
::simulate_design(!!!dots, sims = sims, future.seed = future.seed)
    3.     └─base::mapply(...)
    4.       └─DeclareDesign (local) `<fn>`(design = dots[[1L]][[2L]], sims = dots[[2L]][[2L]], future.seed = dots[[3L]][[1L]])
    5.         ├─base::withCallingHandlers(...)
    6.         ├─base::suppressWarnings(...)
    7.         │ └─base::withCallingHandlers(...)
    8.         └─DeclareDesign:::future_lapply(...)
    9.           └─future.apply::future_lapply(..., future.seed = future.seed, future.globals = future.globals)
   10.             └─future.apply:::future_xapply(...)
   11.               └─base::tryCatch(...)
   12.                 └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   13.                   └─base (local) tryCatchOne(...)
   14.                     └─value[[3L]](cond)
   15.                       └─future.apply:::onError(e, futures = fs, debug = debug)
  
  [ FAIL 3 | WARN 18 | SKIP 0 | PASS 323 ]
  Error:
  ! Test failures.
  Execution halted

r-devel-windows-x86_64

Running 'testthat.R' [16s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(DesignLibrary)
  Loading required package: DeclareDesign
  Loading required package: randomizr
  Loading required package: fabricatr
  Loading required package: estimatr
  > 
  > test_check(package = "DesignLibrary")
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  Saving _problems/test_designers-37.R
  Saving _problems/test_designers-128.R
  Saving _problems/test_diagnose_designers-6.R
  [ FAIL 3 | WARN 18 | SKIP 0 | PASS 323 ]
  
  ══ Failed tests ═══════════════════
...[truncated]...
   └─DeclareDesign (local) `<fn>`(design = dots[[1L]][[2L]], sims = dots[[2L]][[2L]], future.seed = dots[[3L]][[1L]])
    5.         ├─base::withCallingHandlers(...)
    6.         ├─base::suppressWarnings(...)
    7.         │ └─base::withCallingHandlers(...)
    8.         └─DeclareDesign:::future_lapply(...)
    9.           └─base::lapply(...)
   10.             └─DeclareDesign (local) FUN(X[[i]], ...)
   11.               ├─DeclareDesign:::run_design_internal(design)
   12.               └─DeclareDesign:::run_design_internal.design(design)
   13.                 └─DeclareDesign:::next_step(step, current_df, i)
   14.                   └─base::tryCatch(...)
   15.                     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   16.                       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   17.                         └─value[[3L]](cond)
  
  [ FAIL 3 | WARN 18 | SKIP 0 | PASS 323 ]
  Error:
  ! Test failures.
  Execution halted

r-oldrel-windows-x86_64

Running 'testthat.R' [22s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(DesignLibrary)
  Loading required package: DeclareDesign
  Loading required package: randomizr
  Loading required package: fabricatr
  Loading required package: estimatr
  > 
  > test_check(package = "DesignLibrary")
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  Saving _problems/test_designers-37.R
  Saving _problems/test_designers-128.R
  Saving _problems/test_diagnose_designers-6.R
  [ FAIL 3 | WARN 18 | SKIP 0 | PASS 323 ]
  
  ══ Failed tests ═══════════════════
...[truncated]...
   └─DeclareDesign (local) `<fn>`(design = dots[[1L]][[2L]], sims = dots[[2L]][[2L]], future.seed = dots[[3L]][[1L]])
    5.         ├─base::withCallingHandlers(...)
    6.         ├─base::suppressWarnings(...)
    7.         │ └─base::withCallingHandlers(...)
    8.         └─DeclareDesign:::future_lapply(...)
    9.           └─base::lapply(...)
   10.             └─DeclareDesign (local) FUN(X[[i]], ...)
   11.               ├─DeclareDesign:::run_design_internal(design)
   12.               └─DeclareDesign:::run_design_internal.design(design)
   13.                 └─DeclareDesign:::next_step(step, current_df, i)
   14.                   └─base::tryCatch(...)
   15.                     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   16.                       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   17.                         └─value[[3L]](cond)
  
  [ FAIL 3 | WARN 18 | SKIP 0 | PASS 323 ]
  Error:
  ! Test failures.
  Execution halted

r-patched-linux-x86_64

Running ‘testthat.R’ [16s/19s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(DesignLibrary)
  Loading required package: DeclareDesign
  Loading required package: randomizr
  Loading required package: fabricatr
  Loading required package: estimatr
  > 
  > test_check(package = "DesignLibrary")
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  Saving _problems/test_designers-37.R
  Saving _problems/test_designers-128.R
  Saving _problems/test_diagnose_designers-6.R
  [ FAIL 3 | WARN 18 | SKIP 0 | PASS 323 ]
  
  ══ Failed tests ═══════════════
...[truncated]...
   └─DeclareDesign (local) `<fn>`(design = dots[[1L]][[2L]], sims = dots[[2L]][[2L]], future.seed = dots[[3L]][[1L]])
    5.         ├─base::withCallingHandlers(...)
    6.         ├─base::suppressWarnings(...)
    7.         │ └─base::withCallingHandlers(...)
    8.         └─DeclareDesign:::future_lapply(...)
    9.           └─base::lapply(...)
   10.             └─DeclareDesign (local) FUN(X[[i]], ...)
   11.               ├─DeclareDesign:::run_design_internal(design)
   12.               └─DeclareDesign:::run_design_internal.design(design)
   13.                 └─DeclareDesign:::next_step(step, current_df, i)
   14.                   └─base::tryCatch(...)
   15.                     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   16.                       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   17.                         └─value[[3L]](cond)
  
  [ FAIL 3 | WARN 18 | SKIP 0 | PASS 323 ]
  Error:
  ! Test failures.
  Execution halted

r-release-linux-x86_64

Running ‘testthat.R’ [17s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(DesignLibrary)
  Loading required package: DeclareDesign
  Loading required package: randomizr
  Loading required package: fabricatr
  Loading required package: estimatr
  > 
  > test_check(package = "DesignLibrary")
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  Saving _problems/test_designers-37.R
  Saving _problems/test_designers-128.R
  Saving _problems/test_diagnose_designers-6.R
  [ FAIL 3 | WARN 18 | SKIP 0 | PASS 323 ]
  
  ══ Failed tests ═══════════════
...[truncated]...
   └─DeclareDesign (local) `<fn>`(design = dots[[1L]][[2L]], sims = dots[[2L]][[2L]], future.seed = dots[[3L]][[1L]])
    5.         ├─base::withCallingHandlers(...)
    6.         ├─base::suppressWarnings(...)
    7.         │ └─base::withCallingHandlers(...)
    8.         └─DeclareDesign:::future_lapply(...)
    9.           └─base::lapply(...)
   10.             └─DeclareDesign (local) FUN(X[[i]], ...)
   11.               ├─DeclareDesign:::run_design_internal(design)
   12.               └─DeclareDesign:::run_design_internal.design(design)
   13.                 └─DeclareDesign:::next_step(step, current_df, i)
   14.                   └─base::tryCatch(...)
   15.                     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   16.                       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   17.                         └─value[[3L]](cond)
  
  [ FAIL 3 | WARN 18 | SKIP 0 | PASS 323 ]
  Error:
  ! Test failures.
  Execution halted

r-release-windows-x86_64

Running 'testthat.R' [15s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(DesignLibrary)
  Loading required package: DeclareDesign
  Loading required package: randomizr
  Loading required package: fabricatr
  Loading required package: estimatr
  > 
  > test_check(package = "DesignLibrary")
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  [1] "The implied ICC in (control) is 0.667"
  [1] "The implied ICC in (control) conditional on block is  0.5"
  Saving _problems/test_designers-37.R
  Saving _problems/test_designers-128.R
  Saving _problems/test_diagnose_designers-6.R
  [ FAIL 3 | WARN 18 | SKIP 0 | PASS 323 ]
  
  ══ Failed tests ═══════════════════
...[truncated]...
   └─DeclareDesign (local) `<fn>`(design = dots[[1L]][[2L]], sims = dots[[2L]][[2L]], future.seed = dots[[3L]][[1L]])
    5.         ├─base::withCallingHandlers(...)
    6.         ├─base::suppressWarnings(...)
    7.         │ └─base::withCallingHandlers(...)
    8.         └─DeclareDesign:::future_lapply(...)
    9.           └─base::lapply(...)
   10.             └─DeclareDesign (local) FUN(X[[i]], ...)
   11.               ├─DeclareDesign:::run_design_internal(design)
   12.               └─DeclareDesign:::run_design_internal.design(design)
   13.                 └─DeclareDesign:::next_step(step, current_df, i)
   14.                   └─base::tryCatch(...)
   15.                     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   16.                       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   17.                         └─value[[3L]](cond)
  
  [ FAIL 3 | WARN 18 | SKIP 0 | PASS 323 ]
  Error:
  ! Test failures.
  Execution halted

CRAN check page ↗

Slowest check: 2.5 min · r-oldrel-windows-x86_64
Status changes
  • ERROR4 OK, 9 ERRORNow
  • ERROR11 OK, 2 ERROR2026-10-10
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.1.10
README· In the repository, left out of the releaseVignettes· In the repository, left out of the releaseNEWSYes · 100% structured · mentions 0.1.10Citation fileNoWebsiteYes
Help pages
24includes a package overview page
Examples that run
100%16 run in a plain check
Exported functions with examples
94%
Documented parameters
97%
Return-value docs
94%
Help pages citing references
0%

Downloads

28.6K
CRAN downloads in the past year
Rank #2,723 · ~78/day · ~2.4K/mo
Daily download trend is not available in this view yet.
1.8K30 days
5.5K90 days
28.6K1 year
Compare downloads with other packages →
Also on79 r2u5 autocran

Repository

30Stars
3Forks
24Open issues
2Open PRs
10Releases
1,227Commits
11Commit identities
1,227 commits · Last activity 2026-09-21 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
94%
Median days to close, 50 most recently updated closed issues
11
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2024-04-20 · 302026-07-07 · 30
PracticesBeta

8 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/declaredesign/designlibrary on 2026-10-18.

Continuous integration (3)
GitHub ActionsR CMD check workflowTravis CI (config file)

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

Governance and community (1)
PR template
Docs source (2)
README.Rmdpkgdown
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
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-27
    Commits: at least 8 crediting it in the message
Models named in its commits
  • Claude Opus 58 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
10 external dependencies (excludes base and recommended)

Installing DesignLibrary adds 18 packages (11 with compiled code, 9.0 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppEigen 1.7 MB, vctrs 1.0 MB.

LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

Datasets

People & History

People (7)
Author, Maintainer since 0.1.0 (2018)
Releases (9)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 0.1.10Latest
    record
    2021-10-18 · current release · diff ↗
  • 0.1.8
    record
    2021-09-02 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.6
    record
    2021-03-02 · diff ↗
  • 0.1.5.5
    record
    2020-12-01 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.1.4
    record
    2019-06-17 · diff ↗
  • 0.1.3
    record
    2019-05-03 · diff ↗ ·
    added 1 export
    two_arm_covariate_designer
  • R
    R 3.6.0 released · 2019-04-26
  • 0.1.2
    record
    2018-11-12 · diff ↗ ·
    added 4 exports
    binary_iv_designer, spillover_designer, two_arm_designer, two_by_two_designer
  • 0.1.1
    record
    2018-08-25 · diff ↗ ·
    added 3 exports
    factorial_designer, process_tracing_designer, simple_iv_designer
Show 2 earlier eventsHide 2 earlier events
  • 0.1.0
    record
    2018-08-09
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2018-08-09
Total releases
9 / 8 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.4.0
Download size
51 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("DesignLibrary")
Cooper, J., Bicalho, C., Blair, G., Coppock, A., Fultz, N., Humphreys, M., & Medina, L. (2021). DesignLibrary: Library of Research Designs (Version 0.1.10) [Computer software]. https://doi.org/10.32614/CRAN.package.DesignLibrary

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 DesignLibrary version 0.1.10 [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