Package: ExperimentalDesignGeneratorandRandomiser 0.1.0

BiologyAutomation

ExperimentalDesignGeneratorandRandomiser: 'EDGAR': Experimental Design Generator and Randomiser

Native R implementation of 'EDGAR', the Experimental Design Generator and Randomiser. 'EDGAR' was originally developed as a suite of 'Excel' <https://www.microsoft.com/microsoft-365/excel> workbooks by the Biometrics team at Rothamsted Research <http://www.edgarweb.org.uk/>. The algorithms were subsequently re-implemented in the open-source 'Python' <https://www.python.org/> project 'rotsl/edgar' <https://rotsl.github.io/edgar/>, distributed as the 'edgar-design' package on 'PyPI' <https://pypi.org/project/edgar-design/>. This R package is a native R port of that 'Python' implementation: it does not require 'Python', 'reticulate' <https://CRAN.R-project.org/package=reticulate>, or any external service at runtime, and provides deterministic, reproducible randomisation for nine experimental designs including alpha designs (Patterson and Williams, 1976) <doi:10.1093/biomet/63.1.83>. Cross-language reproducibility with the 'Python' implementation is achieved by porting the Mersenne Twister seeding implementation from 'CPython' <https://github.com/python/cpython> and the Fisher-Yates shuffle to native R.

Authors:Rohan R [aut, cph], BiologyAutomation [cre]

ExperimentalDesignGeneratorandRandomiser_0.1.0.tar.gz
ExperimentalDesignGeneratorandRandomiser_0.1.0.zip(r-4.7-any)ExperimentalDesignGeneratorandRandomiser_0.1.0.zip(r-4.6-any)ExperimentalDesignGeneratorandRandomiser_0.1.0.zip(r-4.5-any)
ExperimentalDesignGeneratorandRandomiser_0.1.0.tgz(r-4.6-any)ExperimentalDesignGeneratorandRandomiser_0.1.0.tgz(r-4.5-any)
ExperimentalDesignGeneratorandRandomiser_0.1.0.tar.gz(r-4.7-any)ExperimentalDesignGeneratorandRandomiser_0.1.0.tar.gz(r-4.6-any)
ExperimentalDesignGeneratorandRandomiser_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
ExperimentalDesignGeneratorandRandomiser/json (API)

# Install 'ExperimentalDesignGeneratorandRandomiser' in R:
install.packages('ExperimentalDesignGeneratorandRandomiser', repos = c('https://biologyautomation.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/biologyautomation/edgar-r/issues

On CRAN:

Conda:

4.30 score 317 downloads 26 exports 0 dependencies

Last updated from:556e7b83e5. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK117
source / vignettesOK177
linux-releaseOK109
macos-releaseOK188
macos-oldrelOK207
windows-develOK81
windows-releaseOK57
windows-oldrelOK59
wasm-releaseOK106

Exports:as_layout_frameschoose_designdesign_alphadesign_crdesign_cr_unequaldesign_infodesign_latindesign_rcbdesign_rcb_unequaldesign_split_plotdesign_two_factor_rcbdesign_variable_blocksgenerate_designhas_layoutlist_designsmake_rngpropose_alpha_structuresseeded_randintseeded_sampleseeded_shuffletotal_unitsvalidate_designwith_edgar_seedwrite_edgar_csvwrite_edgar_jsonwrite_edgar_xlsx

Dependencies:

Alpha designs and structure proposal
Background | Generating an alpha design | Repeated controls | Proposing alpha structures | Resolvability | Reference

Last update: 2026-08-22
Started: 2026-08-22

Introduction to EDGAR
What EDGAR is | Installing | Listing designs | Generating a design | Reproducibility | Working with the result | Exporting | Provenance

Last update: 2026-08-22
Started: 2026-08-22

Readme and manuals

Help Manual

Help pageTopics
Package-level documentation.ExperimentalDesignGeneratorandRandomiser-package ExperimentalDesignGeneratorandRandomiser
Access the layout view as a list of data frames (one per section), with section names from 'layout_section_labels'. Returns NULL if the design has no layout.as_layout_frames
'as.data.frame' method: returns the underlying 'rows' data frame.as.data.frame.edgar_design
Generate an 'alpha' design.design_alpha
Generate a 'cr_eq' design.design_cr
Generate a 'cr_uneq' design.design_cr_unequal
Convenience wrapper to fetch a design's metadata (for programmatic introspection by tests or downstream packages).design_info
Generate a 'latin' design.design_latin
Generate an 'rcb' design.design_rcb
Generate an 'rcb_uneq' design.design_rcb_unequal
Generate a 'split_plot' design.design_split_plot
Generate a 'two_factor_rcb' design.design_two_factor_rcb
Generate a 'variable_blocks' design.design_variable_blocks
Constructor: returns an environment that owns the MT state. Pass by reference lets 'genrand_uint32' advance the state without copying.edgar_py_random
Public dispatcher: generate a design by key.generate_design
Whether the design carries a layout view.has_layout
List all registered designs with their metadata.list_designs
Create a fresh seeded RNG.make_rng
Constructor: build an 'edgar_design' S3 object.new_edgar_design
'print' method for 'edgar_design'. Mirrors the upstream CLI summary.print.edgar_design
Propose viable alpha design structures for a given treatment count. Mirrors the upstream Python 'choose_design(treatment_count)' helper.choose_design propose_alpha_structures
Register a design.register_design
Return a random integer between a and b inclusive.seeded_randint
Return k random items from 'items', without replacement.seeded_sample
Return a new vector with 'items' shuffled by 'rng'.seeded_shuffle
Total number of experimental units.total_units
Public dispatcher: validate design parameters by key.validate_design
Validate treatment counts. Mirrors 'validate_treatment_count'.validate_treatment_count
Run a block of code with an isolated seeded RNG, restoring the caller's '.Random.seed' afterwards. This is the safety net for any internal code that calls base R 'sample()' or 'runif()' directly; the 'make_rng()' / 'seeded_shuffle()' path does not touch the global state, so this wrapper is provided for completeness and for users who want to call base R sampling under a known seed.with_edgar_seed
Write a design to a CSV file.write_edgar_csv
Write a design to a JSON file (or return as a string).write_edgar_json
Write a design to an XLSX file.write_edgar_xlsx