forked from vincenzocoia/powers
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
44 lines (29 loc) · 1.05 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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
[![Build Status](https://travis-ci.org/vincenzocoia/powers.svg?branch=master)](https://travis-ci.org/vincenzocoia/powers)
__Note__: This R package is not mean to be "serious". It's just for teaching purposes.
# powers
This is an R package that gives `sqrt()` friends by providing other power functions.
## Installation
You can install powers from github with:
```{r gh-installation, eval = FALSE}
# install.packages("devtools")
devtools::install_github("vincenzocoia/powers")
```
## Example
See the vignette for more extensive use, but here's an example:
```{r example}
powers::reciprocal(2)
```
## For Developers
(Again, I don't actually intend for anyone to develop this silly package, but if I did, here's what I'd write.)
Use the internal `pow` function as the machinery for the front-end functions such as `square`, `cube`, and `reciprocal`.