A 'tidymodels' Engine and Other Extensions for the 'midr' Package
Overview
Provides a 'parsnip' engine for the 'midr' package, enabling users to fit, tune, and evaluate Maximum Interpretation Decomposition (MID) models within the 'tidymodels' framework. Developed through research by the Moonlight Seminar 2025, a study group of actuaries from the Institute of Actuaries of Japan, to enhance practical applications of interpretable modeling. Detailed methodology is available in Asashiba et al. (2025) doi:10.48550/arXiv.2506.08338.
New Features
- Introduced
nightfall()anddaybreak()to seamlessly toggle the package's extended features, including dynamic S3 method registration, custom color themes, and high-performance OLS solvers. - Added
fastLmMatrix(), an optimized wrapper aroundRcppEigen::fastLm()that efficiently handles multivariate (matrix) responses.
Minor Improvements
- Renamed and updated the
ggmid.midimpwrapper to ensure perfect alignment withmidr(>= 0.6.0). - Streamlined the package structure by significantly reducing hard dependencies (
Imports).
From NEWS.md in the release
Install
Health
ERRORwhether package can be installedr-release-windows-x86_64
Installation failed. See 'd:/Rcompile/CRANpkg/local/4.6/midnight.Rcheck/00install.out' for details.
- ERROR12 OK, 1 ERROR2026-10-20
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-21
- ERROR12 OK, 1 ERROR2026-07-15
Show 6 earlier changesHide 6 earlier changes
- OK13 OK2026-06-06
- ERROR12 OK, 1 ERROR2026-06-01
- OK12 OK2026-04-25
- NOTE12 OK, 1 NOTE2026-04-24
- ERROR11 OK, 1 NOTE, 1 ERROR2026-04-18
- NOTE4 OK, 1 NOTE2026-04-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 6 (2 internal)includes a package overview page
- Examples that run
- 100%1 run in a plain check
- Exported functions with examples
- 0%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 3
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Issues over time
Commits over time
9 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/ryo-asashi/midnight on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-08-27 · The repository has a site deploy workflow
pkgdown site last built 2026-08-27
Dependencies
Code & Tests
People & History
- RR 4.6.0 released · 2026-04-24
- 0.2.0Latest2026-04-09 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-04-09
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 384 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("midnight")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-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.