/typing

Runtime Support for Types in R

Primary LanguageROtherNOASSERTION

typing

CRAN status R build status codecov

Features

Feature Example
Define types type.numeric <- typeCheck::type_define(check = is.numeric)
Declare types f <- function(x = ? numeric) identity(x)
Check types f <- typeCheck::type_check(f)

Installation

You can install the released version of typing from CRAN with:

install.packages("typing")

And the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("tidylab/typing")