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) |
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")