Learn R Programming

sicher

sicher (German for safe or certain) is an R package that brings runtime type safety to R programming, inspired by TypeScript for JavaScript. Declare types for your variables and have them enforced automatically on every assignment, catching type errors early and making your code more robust and self-documenting.

Copy Link

Version

Install

install.packages('sicher')

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Mohamed Fodil Ihaddaden

Last Published

March 31st, 2026

Functions in sicher (0.1.0)

Enum

Enum Type Factory
Integer

Built-in Integer Type
ListOf

Create a homogeneous list type
Scalar

Create a scalar (length-1) type variant
Readonly

Create a readonly type variant
create_list_type

Create a List Type with Specific Structure
create_dataframe_type

Create a Data Frame Type with Column Specification
print.sicher_typed_function

Print method for sicher_typed_function
print.sicher_union

Print method for sicher_union
create_type

Create a Custom Type
%:%

Type annotation operator
Bool

Built-in Boolean Type
Function

Built-in Function Type
DataFrame

Built-in DataFrame Type
Any

Built-in Any Type
[.sicher_type

Vector Size Operator for sicher_type
Numeric

Built-in Numeric Type
List

Built-in List Type
String

Built-in String Type
Double

Built-in Double Type
Null

Built-in Null Type
print.sicher_type

Print method for sicher_type
print.sicher_typed_annotation

Print method for sicher_typed_annotation
%<-%

Type-checked assignment operator
infer_type

Infer a Type from an R Object
check_type

Type Checking Function
typed_function

Create a type-checked function
union-operator

Union Type Operator
Optional

Create an optional (nullable) type variant