Simple, Consistent Package Options
Overview
Simple mechanisms for defining and interpreting package options. Provides helpers for interpreting environment variables, global options, defining default values and more.
Bug Fixes
- Fixed
define_optionswhen using aNULLdefault value. Previously, theNULLvalue would not be recognized and would silently ignore the option definition. (@dgkf #34) - Fixed
envvar_is.logical(and thereby,envvar_is_true,envvar_is_false), leveragingas.logicalinternally to make the parsing from strings align more closely to what one may expect in R. Notably, all lowercase valuestrueandfalsewill now be recognized as their respective logical values. (@dgkf #34)
From NEWS.md in the release
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Doug Kelkhoff <doug.kelkhoff@gmail.com>’
Found the following (possibly) invalid URLs:
URL: https://matrix.to/#/#r-pkg-options:matrix.org
From: README.md
Message: Invalid URL: '#' not allowed in fragment- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 20 (11 internal)
- Examples that run
- 100%5 run in a plain check (1 of them under a condition)
- Exported functions with examples
- 56%
- Documented parameters
- 75%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- options HTML
- environment_variables HTML
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- GitHub only
- Median days to close, 50 most recently updated closed PRs
- GitHub only
Repository codeberg.org/dgkf/options is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.
Dependencies
Installing options adds no packages beyond those that come with R.
Code & Tests
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
- 0.3.1Latest
- 0.3.0
- 0.2.0
- RR 4.4.0 released · 2024-04-24
- 0.1.0
- 0.0.22023-08-07 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.0.12023-01-09
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2023-01-09
- Total releases
- 6 / 3 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 54 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("options")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-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.