Package: sicher 0.3.0

sicher: Runtime Type Checking

Provides a lightweight runtime type system for 'R' that enables developers to declare and enforce variable types during execution. Inspired by 'TypeScript', the package introduces intuitive syntax for annotating variables and validating data structures, helping catch type-related errors early and making 'R' code more robust and easier to maintain.

Authors:Mohamed El Fodil Ihaddaden [aut, cre]

sicher_0.3.0.tar.gz
sicher_0.3.0.zip(r-4.7-any)sicher_0.3.0.zip(r-4.6-any)sicher_0.3.0.zip(r-4.5-any)
sicher_0.3.0.tgz(r-4.6-any)sicher_0.3.0.tgz(r-4.5-any)
sicher_0.3.0.tar.gz(r-4.7-any)sicher_0.3.0.tar.gz(r-4.6-any)
sicher_0.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
sicher/json (API)

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

Bug tracker:https://github.com/feddelegrand7/sicher/issues

On CRAN:

Conda:

4.54 score 10 stars 9 scripts 287 downloads 76 exports 1 dependencies

Last updated from:1aa7fc857b. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK114
source / vignettesOK168
linux-releaseOK101
macos-releaseOK128
macos-oldrelOK69
windows-develOK76
windows-releaseOK81
windows-oldrelOK68
wasm-releaseOK94

Exports:%:%%<-%AliasAnyBetweenBoolbrandBrandCheckcheck_typeCoercecreate_dataframe_typecreate_list_typecreate_typeDataFrameDateDateTimeDefaultDescribeDiscriminatedUnionDoubledump_asEnumEnvironmentextendFactorfield_errorsFunctionFunctionOfHasMethodsinfer_typeInstanceOfIntegeris_typeKeyOfLazyListListOfLiteralmatch_typeMatchesMatrixOfMaxLengthMinLengthNonEmptyNonNANonNegativeNullNullableNumericOmitOptionalparse_asparse_envPartialPickPipePositiveproblem_jsonReadonlyRecordRefineRequiredsafe_parseScalarStringto_jsonto_json_schemaTransformTupletype_oftyped_functionUniqueuntypevalidate_jsonWhole

Dependencies:glue

Readme and manuals

Help Manual

Help pageTopics
Vector Size Operator for sicher_type[.sicher_type
Type annotation operator%:%
Type-checked assignment operator%<-%
Give a field an external nameAlias
Built-in Any TypeAny
Between — closed-interval numeric range constraintBetween
Built-in Boolean TypeBool
Branded typesBrand brand branded-types
Rules that report problems at a chosen locationCheck
Type Checking Functioncheck_type
Coerce values before checking themCoerce
Create a Data Frame Type with Column Specificationcreate_dataframe_type
Create a List Type with Specific Structurecreate_list_type
Create a Custom Typecreate_type
Built-in DataFrame TypeDataFrame
Built-in Date TypeDate
Built-in DateTime TypeDateTime
Default value for a typeDefault
Describe a typeDescribe
Discriminated Union Type FactoryDiscriminatedUnion
Built-in Double TypeDouble
Prepare a value for outputdump_as
Enum Type FactoryEnum
Built-in Environment TypeEnvironment
Extend a structured list type with additional fieldsextend
Factor Type FactoryFactor
Error messages grouped by fieldfield_errors
Built-in Function TypeFunction
Function Type FactoryFunctionOf
Types for objects that have certain methodsHasMethods
Infer a Type from an R Objectinfer_type
Instance-of typeInstanceOf
Built-in Integer TypeInteger
Intersection Type Operator&.sicher_type &.sicher_union intersection-operator
Test whether a value matches a typeis_type
Lazy (recursive) typesLazy
MinLength / MaxLength modifierslength-modifiers MaxLength MinLength
Built-in List TypeList
Create a homogeneous list typeListOf
Literal Type FactoryLiteral
Exhaustive matching on the cases of a typematch_type
Matches — regex-constrained string typeMatches
Matrix Type FactoryMatrixOf
NonEmpty modifier — require a non-empty valueNonEmpty
NonNA modifier — reject values containing NAsNonNA
Built-in NonNegative TypeNonNegative
Built-in Null TypeNull
Create a nullable type variantNullable
Built-in Numeric TypeNumeric
Object type utilities: Pick, Omit, Partial, Required, KeyOfKeyOf object-helpers Omit Partial Pick Required
Create an optional (nullable) type variantOptional
Parse a value against a typeparse_as safe_parse
Read settings from environment variablesparse_env
Built-in Positive TypePositive
Print method for sicher_parse_resultprint.sicher_parse_result
Print method for sicher_readonlyprint.sicher_readonly
Print method for sicher_typeprint.sicher_type
Print method for sicher_typed_annotationprint.sicher_typed_annotation
Print method for sicher_typed_functionprint.sicher_typed_function
Print method for sicher_unionprint.sicher_union
Problem details for HTTP APIsproblem_json
Create a readonly type variantReadonly
Record Type FactoryRecord
Refine a type with a custom ruleRefine
Create a scalar (length-1) type variantScalar
Built-in String TypeString
Convert a value to JSONto_json
Convert a type to JSON Schemato_json_schema
Transform values after checking themPipe Transform transforms
Tuple Type FactoryTuple
Get the declared type of a typed variabletype_of
Create a type-checked functiontyped_function
Union Type Operatorunion-operator |.sicher_type |.sicher_union
Unique modifierUnique
Remove the type from a typed variableuntype
Parse and validate JSONvalidate_json
Built-in Whole TypeWhole