Skip to content

formulaic

0.0.8Package record

Dynamic Generation and Quality Checks of Formula Objects

1packages depend
4Kdownloads / year
80.2%test coverage
13/13flavors OK

Overview

About

Many statistical models and analyses in R are implemented through formula objects. The formulaic package creates a unified approach for programmatically and dynamically generating formula objects. Users may specify the outcome and inputs of a model directly, search for variables to include based upon naming patterns, incorporate interactions, and identify variables to exclude. A wide range of quality checks are implemented to identify issues such as misspecified variables, duplication, a lack of contrast in the inputs, and a large number of levels in categorical data. Variables that do not meet these quality checks can be automatically excluded from the model. These issues are documented and reported in a manner that provides greater accountability and useful information to guide an investigation of the data.

Changes in 0.0.8

Minor updates:

  • reduce.existing.formula: A new parameter envir was added to store the environment of the formula, with the global environment as the default.
  • add.backtick: A new parameter dat was addedBackticks can be added based on the relationship of the object to the data dat. The data can be formatted as either a data.frame or data.table object.

Major updates:

Improvement to accommodate variable transformations. This allows the user to specify more complex quantities, e.g. sqrt(Age^2 * log(Income)). In create.formula, this may be specified in the input.names or the interactions. The calculated inclusion.table of quality checks has been updated to evaluate the transformations and then assess the inclusion and exclusion criteria. Likewise, in add.backtick, a similar evaluation is used to determine whether encompass the object within backticks for use in a formula object. This improves upon the previous version of the formulaic package. Previously the main effects and interactions could only be based on the variables within a data.frame. With this change, the package should better accommodate most transformations of these variables.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.1 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • WARNING12 OK, 1 WARNING2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.0.8
READMEYes · 659 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.0.8Citation fileNoWebsiteYes · pkgdown
Help pages
4
Examples that run
100%2 run in a plain check
Exported functions with examples
67%
Documented parameters
100%
Return-value docs
0%
Help pages citing references
0%

Downloads

4K
CRAN downloads in the past year
Rank #12,680 · ~11/day · ~332/mo
Daily download trend is not available in this view yet.
33030 days
89390 days
4K1 year
Compare downloads with other packages →
Also on71 r2u8 autocran

Repository

10Stars
3Forks
0Open issues
1Open PRs
8Releases
231Commits
6Commit identities
rformula-parsermachine-learningformula-objectsquality-checkstatistical-modelscran
License file reads as GPL-3.0 · 231 commits · Last activity 2026-05-31 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
69%
Median days to close, 50 most recently updated closed issues
76
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-02-16 · 102026-07-07 · 10
PracticesBeta

9 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/dachosen1/formulaic on 2026-10-22.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (2)
Code of conductIssue templates
Docs source (2)
pkgdown

GitHub Pages site last deployed 2026-05-31

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 2 practices
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-01-11
    Pull request it wrote: opened by a project member
    Commits: 3 by its own account
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing formulaic adds 1 package (1 with compiled code, 5.7 MB of source tarballs). Heaviest: data.table 5.7 MB.

Depends (1)
R >= 3.2.0
Imports (2)
data.tablemethods
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (4)
Author, Contributor, Maintainer since 0.0.1 (2019)
Author, Contributor
Author, Contributor
Releases (8)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.0.8Latest
    record
    2021-02-15 · current release · diff ↗
  • 0.0.7
    record
    2020-05-04 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.0.6
    record
    2020-01-19 · diff ↗
  • 0.0.5
    record
    2019-12-16 · diff ↗
  • 0.0.4
    record
    2019-10-08 · diff ↗
  • 0.0.3
    record
    2019-08-31 · diff ↗
  • 0.0.2
    record
    2019-08-08 · diff ↗ ·
    added 1 export
    add.backtick
  • 0.0.1
    record
    2019-08-05
  • R
    R 3.6.0 released · 2019-04-26

Package metadata

First published
2019-08-05
Total releases
8 / 7 yrs
License
GPL-3 OSI
Minimum R
≥ 3.2.0
Bundled data
124 KB / 1 file
Download size
188 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("formulaic")
Nelson, A., Huang, Z., Lee, C., & Shilane, D. (2021). formulaic: Dynamic Generation and Quality Checks of Formula Objects (Version 0.0.8) [Computer software]. https://doi.org/10.32614/CRAN.package.formulaic

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for formulaic version 0.0.8 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy