Skip to content

fluffy

1.0.1Package record

Schema-Based Validation of 'R' Objects with User-Defined Rules

0packages depend
1.1Kdownloads / year
73.4%test coverage
13/13flavors OK

Overview

About

A schema-based validation framework for 'R' objects using user-defined rules. Provides three 'S7' classes 'Registry', 'Schema', and 'Validator' to manage rules, define list-based schemas, and validate data in a flexible and extensible manner.

Changes in 1.0.1

New Features

  • New length rule added to the Registry. This rule checks that the length of a data field is exactly equal to the value specified by the length schema field. This removes the need to specify both a min_length and max_length with the same value when enforcing an exact length.
  • New length_and_min_length and length_and_max_length cross rules added to the Registry. These rules check that the min_length and max_length rules are not specified when a length rule is present.
  • The coerce rule now accepts functions with multiple arguments when passed directly to a Schema or Validator, allowing base as.*() functions to be used as coerce rules in schema definitions. However, only the field value is passed to the function; any additional arguments are ignored. Functions with multiple arguments still cannot be added to the Registry@coerce_map, as add_coerce_rule() enforces a strict one-argument function signature.

Bug fixes

  • Fixed the allowed_type_mismatch and forbidden_type_mismatch cross rules so that they use the Registry@type_map to obtain the function used for type checking when type is a string, and use the supplied function directly when type is a function. Previously, function-valued type fields caused an error, while character-valued type fields could result in incorrect type checking because the class of the allowed/forbidden field was compared directly with the type field. This could produce false positives, such as an integer allowed/forbidden field being flagged as a type mismatch when type was "numeric".
  • Fixed incorrect argument-count checking for the type, predicate, and apply rules.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.8 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK7 OK2026-06-11
Advisories

none known

Documentation

In release 1.0.1
READMEYes · 362 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 1.0.1Citation fileNoWebsiteYes · pkgdown
Help pages
6 (1 internal)includes a package overview page
Examples that run
100%5 run in a plain check
Exported functions with examples
100%
Documented parameters
93%
Return-value docs
100%
Help pages citing references
0%

Downloads

1.1K
CRAN downloads in the past year
Rank #16,567 · ~3/day · ~93/mo
Daily download trend is not available in this view yet.
21730 days
76490 days
1.1K1 year
Compare downloads with other packages →
Also on31 r2u1 autocran

Repository

1Stars
0Forks
1Open issues
0Open PRs
2Releases
23Commits
1Commit identities
customizerrulesschemavalidation
23 commits · Last activity 2026-08-20 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
37
Median days to close, 50 most recently updated closed PRs
not measured

Stars over time

2026-06-10 · 12026-07-07 · 1
PracticesBeta

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

Checks run against github.com/lj-jenkins/fluffy on 2026-10-21.

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 (1)
Code of conduct
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-08-20 · The repository has a site deploy workflow

pkgdown site last built 2026-08-20

CRAN release process (1)
cran-comments.md
Show all practicesHide 2 practices
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)

Installing fluffy adds 1 package (1 with compiled code, 180 KB of source tarballs). Heaviest: S7 180 KB.

Depends (0)
none
Imports (3)
methodsS7utils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 1.0.0 (2026), Copyright holder
Releases (2)

Pick two releases to compare their code metrics.

  • 1.0.1Latest
    record
    2026-08-20 · current release · diff ↗
  • 1.0.0
    record
    2026-06-10
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-06-10
Total releases
2 / 1 yrs
License
MIT + file LICENSE OSI
Download size
156 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("fluffy")
Jenkins, L. (2026). fluffy: Schema-Based Validation of 'R' Objects with User-Defined Rules (Version 1.0.1) [Computer software]. https://doi.org/10.32614/CRAN.package.fluffy

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 fluffy version 1.0.1 [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