Package: restrictR 0.1.2

restrictR: Composable Runtime Contracts for R

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.

Authors:Gilles Colling [aut, cre, cph]

restrictR_0.1.2.tar.gz
restrictR_0.1.2.zip(r-4.7)restrictR_0.1.2.zip(r-4.6)restrictR_0.1.2.zip(r-4.5)
restrictR_0.1.2.tgz(r-4.6-any)restrictR_0.1.2.tgz(r-4.5-any)
restrictR_0.1.2.tar.gz(r-4.7-any)restrictR_0.1.2.tar.gz(r-4.6-any)
restrictR_0.1.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
restrictR/json (API)
NEWS

# Install 'restrictR' in R:
install.packages('restrictR', repos = c('https://gcol33.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gcol33/restrictr/issues

Pkgdown/docs site:https://gillescolling.com

On CRAN:

Conda:

contractsruntime-checksruntime-contractsvalidation

5.00 score 5 stars 7 scripts 474 downloads 31 exports 0 dependencies

Last updated from:4bb15c5ac5. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK106
source / vignettesOK176
linux-release-x86_64OK110
macos-release-arm64OK79
macos-oldrel-arm64OK71
windows-develOK75
windows-releaseOK74
windows-oldrelOK109
wasm-releaseOK97

Exports:as_contract_blockas_contract_textfailrequire_betweenrequire_characterrequire_col_betweenrequire_col_characterrequire_col_numericrequire_col_one_ofrequire_customrequire_dfrequire_finiterequire_has_colsrequire_integerrequire_lengthrequire_length_matchesrequire_length_maxrequire_length_minrequire_logicalrequire_namedrequire_negativerequire_no_narequire_not_nullrequire_nrow_matchesrequire_nrow_minrequire_numericrequire_one_ofrequire_positiverequire_scalarrequire_uniquerestrict

Dependencies:

Runtime Contracts for R Functions

Rendered fromrestrictR.Rmdusingknitr::rmarkdownon May 31 2026.

Last update: 2026-05-31
Started: 2026-03-04