Skip to content

restrictR

0.1.0

Composable Runtime Contracts for R

0packages depend
2.1Kdownloads / year
93.8%test coverage
13/13checks pass

Overview

About
Maintained by Gilles CollingFirst published 2026-03-091 releasesCRAN page ↗GitHub ↗

Build reusable validators from small building blocks using the base pipe operator. Define runtime contracts once with 'restrict()' and enforce them anywhere in code. Validators compose naturally, support dependent rules via formulas, and produce clear, path-aware error messages. No DSL, no operator overloading, just idiomatic R.

Install

Health

CRAN checks
13OK
Slowest check: 1.1 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.49
93.8%
Coverage · measured lines
100%
Documentation · exports
0
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 1 FAILURE
  • NOTE2026-06-07
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    6 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 331 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

2.1K
CRAN downloads in the past year
Rank #9,874 · ~6/day · ~175/mo
Daily download trend is not available in this view yet.
11430 days
1K90 days
2.1K1 year
Compare downloads with other packages →
Also on40 r2u6 autocran

Repository

Repository
6Stars
0Forks
0Open issues
0Open PRs
2Releases
33Commits
2Contributors
contractsrr-packagerstatsruntime-contractsvalidationruntime-checks
33 commits · Last activity 2026-06-29 · +20% stars, 30d

Stars over time

2026-03-04 · 12026-08-02 · 6

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/gcol33/restrictr on 2026-08-03.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v1 (2026-07-18)

Development tooling

AI-assisted toolingBeta

Uses AI-assisted development tooling (declared in repo)

Earliest detected marker: claude on 2026-03-04

claude

Most recent: claude on 2026-03-04

Evidence
  • claude: on 2026-03-04 · evidence B, D
How this is detected·Detection ruleset v2 (updated 2026-07-29)

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Copyright holders (1)
Author, Maintainer, Copyright holder
Package Timeline

1 release. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.0Latest
    2026-03-10 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-03-09
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
28 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("restrictR")
Colling, G. (2026). restrictR: Composable Runtime Contracts for R (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.restrictR

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 restrictR version 0.1.0 [Data set]. HJJB, LLC. Data release v2026-08-08. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-08, 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