-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
74 lines (51 loc) · 2.52 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
[![Travis build status](https://travis-ci.org/adam-gruer/inspectoRGadget.svg?branch=master)](https://travis-ci.org/adam-gruer/inspectoRGadget)
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/adam-gruer/inspectoRGadget?branch=master&svg=true)](https://ci.appveyor.com/project/adam-gruer/inspectoRGadget)
[![Coverage status](https://codecov.io/gh/adam-gruer/inspectoRGadget/branch/master/graph/badge.svg)](https://codecov.io/github/adam-gruer/inspectoRGadget?branch=master)
# inspectoRGadget
![inspectoRGadget hex sticker](inst/figures/inspectoRGadget.png "Package hex sticker")
The goal of inspectoRGadget is to meet an urgent need spelled out in this [twitter plea](https://twitter.com/CausalKathy/status/999091807937028096)
![tweet call to arms](inst/screenshots/tweet_inspo.png "The tweet that started it all")
## Installation
You can install the development version of `inspectoRGadget` from [github](https://www.github.com) with:
``` r
# install.packages("devtools")
devtools::install_github("adam-gruer/inspectoRGadget")
```
## Example
Step 1: **gadgetize** your favourite installed package by calling `gogo_gadget_arms()`
Wowsers! All that package's functions and objects can now be used by typing
`gogo_{function/object}`
```r
library(inspectoRGadget)
gogo_gadget_arms("dplyr")
```
```{r gadgetize, include=FALSE}
library(inspectoRGadget)
gogo_gadget_arms("dplyr")
```
Step 2: **gogo_** all the things!
Here we `gogo_filter()` the `beaver1` dataset to find when the critter was active
```{r gogo_filter}
gogo_filter(beaver1, activ == 1)
```
All those gogo_s now live in your search path in an environment called `gadget_arms`
(thanks for the [tip Hadley Wickam!](https://github.com/adam-gruer/inspectoRGadget/issues/2))
This _is not really important_ unless you have already loaded an important,
useful package also called `gadget_arms`. In that case, sorry, together we probably busted
something, I see error messages in your future.
### **Please note there are probably lots of reasons this is not a good idea but neither Brain nor Penny was around to stop us**
## Code of Conduct
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md).
By participating in this project you agree to abide by its terms.