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.
git clone https://github.com/aviralg/rant
make -j -C rantgit clone https://github.com/aviralg/annotatr
rant/bin/R CMD INSTALL annotatrgit clone https://github.com/aviralg/contractr
rant/bin/R CMD INSTALL contractr