Provides tools for managing nested, multi-level configuration systems with runtime mutability, type validation, and default value management. Supports creating hierarchical options managers with customizable validators for scalar and vector types (numeric, character, logical), enumerated values, bounded ranges, and complex structures like XY pairs. Options can be dynamically modified at runtime while maintaining type safety through validator functions, and easily reset to their default values when needed.
| Version: | 0.1.0 |
| Depends: | R (≥ 4.1.0) |
| Suggests: | testthat (≥ 3.0.0), knitr, rmarkdown |
| Published: | 2026-02-16 |
| DOI: | 10.32614/CRAN.package.optree (may not be active yet) |
| Author: | Bangou Zheng [aut, cre] |
| Maintainer: | Bangou Zheng <zheng.bangyou at gmail.com> |
| BugReports: | https://github.com/byzheng/optree/issues |
| License: | MIT + file LICENSE |
| URL: | https://optree.bangyou.me/, https://github.com/byzheng/optree |
| NeedsCompilation: | no |
| Materials: | README |
| CRAN checks: | optree results |
| Reference manual: | optree.html , optree.pdf |
| Vignettes: |
Using Validators in optree (source, R code) |
| Package source: | optree_0.1.0.tar.gz |
| Windows binaries: | r-devel: not available, r-release: not available, r-oldrel: not available |
| macOS binaries: | r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available |
Please use the canonical form https://CRAN.R-project.org/package=optree to link to this page.