Encapsulating Elements of Experimental Design
Overview
A system to facilitate designing comparative (and non-comparative) experiments using the grammar of experimental designs https://emitanaka.org/edibble-book/. An experimental design is treated as an intermediate, mutable object that is built progressively by fundamental experimental components like units, treatments, and their relation. The system aids in experimental planning, management and workflow.
Bug fixes
- Factor inputs were displayed integers. Fixed so this does not happen.
- S3 methods are exported.
Improvements
- If an edibble object is created from existing data, level edges are added when using
allot_trts(). - If a record factor is specified from existing data, the unit levels are added as attributes.
From NEWS.md in the release
Install
Health
ERRORtestsr-release-macos-x86_64
Running ‘testthat.R’ [11s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(edibble)
>
> test_check("edibble")
Failed with error: 'there is no package called 'openxlsx2''
Saving _problems/test-export-5.R
Failed with error: 'there is no package called 'openxlsx2''
Saving _problems/test-export-26.R
[ FAIL 2 | WARN 0 | SKIP 19 | PASS 100 ]
══ Skipped tests (19) ══════════════════════════════════════════════════════════
• On CRAN (14): 'test-design.R:1:1', 'test-edibble.R:1:1', 'test-menu.R:1:1',
'test-menu.R:9:1', 'test-menu.R:17:1', 'test-menu.R:27:1',
'test-menu.R:39:1', 'test-menu.R:51:1', 'test-menu.R:61:1',
'test-nest.R:1:1', 'test-rcrds.R:1:1', 'test-serve.R:1:1', 'test-trts.R:1:1',
'test-units.R:1:1'
• empty test (3): 'test-attrs.R:60:1', 'test-nest.R:61:1', 'test-utils.R:1:1'
• skip (2): 'test-rcrds.R:92:3', 'test-simulate.R:58:3'
══ Failed tests ═════════════════════════════════
...[truncated]...
TRUE, author = "Emi Tanaka")`: Please install the `openxlsx2` package to use this function.
Backtrace:
▆
1. ├─base::suppressMessages(...) at test-export.R:5:3
2. │ └─base::withCallingHandlers(...)
3. └─edibble::export_design(des, file = fn, overwrite = TRUE, author = "Emi Tanaka")
4. └─rlang::abort("Please install the `openxlsx2` package to use this function.")
── Error ('test-export.R:26:3'): export with record ────────────────────────────
Error in `export_design(des, file = fn, overwrite = TRUE)`: Please install the `openxlsx2` package to use this function.
Backtrace:
▆
1. ├─base::suppressMessages(export_design(des, file = fn, overwrite = TRUE)) at test-export.R:26:3
2. │ └─base::withCallingHandlers(...)
3. └─edibble::export_design(des, file = fn, overwrite = TRUE)
4. └─rlang::abort("Please install the `openxlsx2` package to use this function.")
[ FAIL 2 | WARN 0 | SKIP 19 | PASS 100 ]
Error:
! Test failures.
Execution halted- ERROR12 OK, 1 ERROR2026-05-02
- OK14 OK2026-03-10
Documentation
- Help pages
- 69 (3 internal)includes a package overview page
- Examples that run
- 100%39 run in a plain check
- Exported functions with examples
- 63%
- Documented parameters
- 94%
- Return-value docs
- 67%
- Help pages citing references
- 0%
- defining-structure HTML
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 48
- Median days to close, 50 most recently updated closed PRs
- 5
Stars over time
8 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/emitanaka/edibble on 2026-10-18.
GitHub Pages site last deployed 2024-04-30 · The repository has a site deploy workflow
pkgdown site last built 2024-04-30, before release 1.1.1 (2024-05-06)
Show all practicesHide 1 practice
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.1.1Latest2024-05-06 · current release · diff ↗ ·
added 4 exports
graph_input, index_levels, label_distinct, label_nested - RR 4.4.0 released · 2024-04-24
- 1.1.02023-11-12 · diff ↗ ·
removed 7 exports
anatomy, edibble, is_edibble_rcrd, is_edibble_trt, is_edibble_unit, is_edibble_var, vec_mathadded 21 exports
autofill_rcrds, conditioned_on, count_by, design_anatomy, design_model, examine_process, examine_process_values, fct, is_fct, is_rcrd, is_trt, is_unit, order_trts, rescale_values, set_attrs, simulate_process, simulate_rcrds, split_by, trts_table, with_params, with_variables - 1.0.02023-09-03 · diff ↗ ·
removed 6 exports
Kitchen, as_data_frame, cook_design, lvl_attrs, record_step, select_unitsadded 11 exports
Provenance, activate_provenance, column, fct_generator, fct_graph, is_provenance, label_seq_from_length, label_seq_from_to, label_seq_length, label_seq_to_length, lvls - RR 4.3.0 released · 2023-04-21
- 0.1.32023-03-23 · diff ↗
- 0.1.22022-10-04 · diff ↗
- 0.1.12022-08-26 · diff ↗
- 0.1.02022-06-22
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-06-22
- Total releases
- 7 / 4 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 2.10
- Bundled data
- 0.8 KB / 2 files
- Download size
- 2.6 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("edibble")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.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.