Blocking and Randomization for Experimental Design
Overview
Intelligently assign samples to batches in order to reduce batch effects. Batch effects can have a significant impact on data analysis, especially when the assignment of samples to batches coincides with the contrast groups being studied. By defining a batch container and a scoring function that reflects the contrasts, this package allows users to assign samples in a way that minimizes the potential impact of batch effects on the comparison of interest. Among other functionality, we provide an implementation for OSAT score by Yan et al. (2012, doi:10.1186/1471-2164-13-689).
- fix test failure on R-devel.
RNGkind()gained a fourth component,binom.kind, in R 4.7.0 (r90299, 2026-07-25, "fix 2 signs in formula of the BTPE algorithm for rbinom(); add RNGkind(binom.kind=*)"). The tests no longer assert that it has exactly three elements.BatchContainertraces already storedRNGkind()verbatim, so no user-visible behaviour changed. - examples, tests and vignettes now call
data.table::setDTthreads(2), to avoid CPU time issues on CRAN check machines. This affects package checks only, not normal use. optimize_multi_plate_design()now passesp = 1andpenalize_lines = "none"to the within-plate scoring functions.- new vignette showing how batch effects produce false positives.
basic_examplesvignette updated to the current$move_samples()syntax and a more designit-centric workflow.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-09
- ERROR10 OK, 3 ERROR2026-07-27
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 57 (18 internal)includes a package overview page
- Examples that run
- 100%20 run in a plain check
- Exported functions with examples
- 63%
- Documented parameters
- 96%
- Return-value docs
- 91%
- Help pages citing references
- 0%
- Basic example of using designit: plate layout with two factors
- Batch effects and false positives HTML
- designit: a flexible engine to generate experiment layouts
- In-vivo study design HTML
- Nested dimension example HTML
- Optimizer examples HTML
- OSAT and scoring functions HTML
- Plate layouts HTML
- Shuffling with constraints HTML
- Using custom shuffle schedule HTML
Downloads
Repository
- PRs merged (all time)
- 92%
- Median days to close, 50 most recently updated closed issues
- 102
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
Commit identities over time
10 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/bedapub/designit on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-03 · The repository has a site deploy workflow
pkgdown site last built 2026-09-03
Show all practicesHide 1 practice
This repository shows signs of AI coding tools.
- Claude Codefirst seen on or before 2026-09-01Commits: at least 2 crediting it in the message
- Claude Opus 52 commits · Sep 2026
Dependencies
Installing designit adds 31 packages (16 with compiled code, 34 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.5.1Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.5.02024-03-21
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2024-03-21
- Total releases
- 2 / 2 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 4.0 KB / 5 files
- Download size
- 4.6 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("designit")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.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.