Skip to content

Commit

Permalink
update patch number in version
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenzocoia committed Nov 12, 2020
1 parent b3aaa8d commit 1d78764
Show file tree
Hide file tree
Showing 32 changed files with 3,966 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata
docs
doc
Meta
.Ruserdata
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: powers
Type: Package
Title: Convenient Computation of Powers
Version: 0.2.0
Version: 0.2.1
Authors@R:
person("Vincenzo",
"Coia",
Expand All @@ -20,6 +20,7 @@ Suggests:
rmarkdown,
covr
Imports:
purrr
purrr,
rlang
VignetteBuilder: knitr
Depends: R(>= 2.10.0)
Binary file added Meta/vignette.rds
Binary file not shown.
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# powers 0.2.1

* More informative error messages given.
* Functions now deliberately break when inputting a list of logicals.

# powers 0.2.0

* Functions now have compatibility with lists.
Expand Down
11 changes: 11 additions & 0 deletions doc/using_powers.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## -----------------------------------------------------------------------------
library(powers)

## -----------------------------------------------------------------------------
square(1:10)
cube(1:10)
reciprocal(1:10)

## -----------------------------------------------------------------------------
cube(list(1, 4, 5))

33 changes: 33 additions & 0 deletions doc/using_powers.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: "Using the `powers` package"
author: "Vincenzo Coia"
date: "`r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Using the `powers` package}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---

__Note__: This package package is only meant for expository purposes -- although you might just find it handy!

Want to compute powers without having to use `^` or `**`? Give `sqrt` some friends by loading the `powers` package!

```{r}
library(powers)
```

Want squares, cubes, or reciprocals? Easy.

```{r}
square(1:10)
cube(1:10)
reciprocal(1:10)
```

List-friendly inputs, as well:

```{r}
cube(list(1, 4, 5))
```

Loading

0 comments on commit 1d78764

Please sign in to comment.