-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
48 lines (37 loc) · 1.25 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
output:
github_document:
html_preview: false
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
options(tibble.print_min = 5, tibble.print_max = 5)
```
# contractr
[](https://travis-ci.org/aviralg/contractr)
[](http://cran.r-project.org/package=contractr)
## Overview
`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.
## Installation
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
```