-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
51 lines (37 loc) · 1.16 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
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# coa
coa introduces compound assignment operators
<!-- badges: start -->
[](https://github.com/Noza23/coa/actions/workflows/R-CMD-check.yaml)
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[](https://app.codecov.io/gh/Noza23/coa?branch=main)
<!-- badges: end -->
## Installation
You can install the development version of coa using:
``` r
devtools::install_github("git@github.com:Noza23/coa.git")
```
## Example
This is a basic example which shows you how to solve a common problem:
```{r example}
library(coa)
x <- 10
print(x %+=% 1)
print(x %-=% 5)
print(x %*=% 2)
print(x %/=% 5)
print(x %c=% 1:5)
print(`++`(x))
print(`--`(x))
```