Package: s7contract 0.1.0.9000

Sounkou Mahamane Toure

s7contract: 'Go'-Like Interfaces and 'Rust'-Like Traits with 'S7'

Contract helpers built with 'S7' for expressing runtime protocols around ordinary 'S7' dispatch. Structural interfaces describe small sets of required 'S7' generics, while explicit traits record registered implementations with optional default methods and associated metadata. Optional runtime checks can validate argument and return specifications in contract-scoped evaluation.

Authors:Sounkou Mahamane Toure [aut, cre], Abiomix FZ LLC [cph, fnd]

s7contract_0.1.0.9000.tar.gz
s7contract_0.1.0.9000.zip(r-4.7)s7contract_0.1.0.9000.zip(r-4.6)s7contract_0.1.0.9000.zip(r-4.5)
s7contract_0.1.0.9000.tgz(r-4.6-any)s7contract_0.1.0.9000.tgz(r-4.5-any)
s7contract_0.1.0.9000.tar.gz(r-4.7-any)s7contract_0.1.0.9000.tar.gz(r-4.6-any)
s7contract_0.1.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
s7contract/json (API)

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

Bug tracker:https://github.com/abiomix/abiomix-r-open/issues

Pkgdown/docs site:https://sounkou-bioinfo.github.io

On CRAN:

Conda:

3.56 score 1 packages 12 scripts 161 downloads 19 exports 1 dependencies

Last updated from:dd82290ba2. Checks:9 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK122
source / vignettesOK165
linux-release-x86_64OK241
macos-release-arm64OK146
macos-oldrel-arm64OK71
windows-develOK77
windows-releaseOK63
windows-oldrelOK65
wasm-releaseOK119

Exports:%::%as_interfaceassert_implementsassert_traithas_traitimpl_traitimplementsinterface_reportinterface_requirementinterface_requirementsmissing_requirementsnew_interfacenew_traittrait_assoc_consttrait_assoc_typetrait_calltrait_methodtrait_methodstrait_report

Dependencies:S7

Bioinformatics Containers as Interfaces
Introduction | Background | A toy assay container | Operations and a consumer-owned interface | When an explicit trait helps | Design cautions | References

Last update: 2026-07-13
Started: 2026-07-13

Go-Like Interfaces and Rust-Like Traits on S7
Introduction | Background | A structural interface | When the whole protocol is a class family | Progressive argument and return checks | Number-like behavior | Vector-like behavior | An explicit trait | A Haskell-style dictionary object | Which feels more natural? | References

Last update: 2026-07-13
Started: 2026-07-13

Readme and manuals

Help Manual

Help pageTopics
Evaluate an S7 call under an interface or trait contract%::% contract_syntax
Inspect or check a Go-like structural interfaceassert_implements as_interface implements interface_report interface_requirements missing_requirements
Build a Go-like structural interface on top of S7interface_requirement new_interface
Build a Rust-like explicit trait on top of S7new_trait trait_method
s7contract: Contract Helpers for S7s7contract-package s7contract
Inspect or use a Rust-like explicit traitassert_trait has_trait impl_trait trait_assoc_const trait_assoc_type trait_call trait_methods trait_report