typing
![](https://raw.githubusercontent.com/tidylab/typing/master/pkgdown/logo.png)
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")