knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" ) options(tibble.print_min = 5, tibble.print_max = 5)
contractr
processes annotations on function arguments and body and inserts
corresponding contracts in the function body.
Since GNU R
does not support annotations (yet), this package relies on my own
version of R, rant
, which extends R to support annotations on functions,
function formals and function body.
To install this package you have to install rant
and annotatr
packages.
```{bash, eval = FALSE} git clone https://github.com/aviralg/rant make -j -C rant
```{bash, eval = FALSE} git clone https://github.com/aviralg/annotatr rant/bin/R CMD INSTALL annotatr
{bash, eval = FALSE}
git clone https://github.com/aviralg/contractr
rant/bin/R CMD INSTALL contractr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.