Skip to content

Commit 4e67e4b

Browse files
authored
Search Pattern Vignette (#18)
* Add search pattern vignette * Touch up README * Add vignette bullet * Clean up for release * Ignore inst/doc * Bump to release * Let's not try to inline evaluate `r programming`... * Rename section heading * Add a usage overview * Improve note on contributions * Let's try to shorten the URL (e.g. drop trends) * Update cran submission comments. * Improve ordering * Move badges underneath repo name * Improve installation instructions * Fix website ordering to match with supported sites. * Change headers * Add a section that links out to current users of the package. * Reknit README
1 parent 53700a8 commit 4e67e4b

File tree

8 files changed

+207
-48
lines changed

8 files changed

+207
-48
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.Rhistory
33
.RData
44
.DS_Store
5+
inst/doc

DESCRIPTION

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: searcher
22
Title: Query Search Interfaces
3-
Version: 0.0.3.9200
3+
Version: 0.0.4
44
Authors@R: c(
55
person("James", "Balamuta",
66
email = "[email protected]",
@@ -20,5 +20,9 @@ Encoding: UTF-8
2020
LazyData: true
2121
RoxygenNote: 6.1.1
2222
Roxygen: list(markdown = TRUE)
23-
Suggests: testthat,
24-
covr
23+
Suggests:
24+
testthat,
25+
covr,
26+
knitr,
27+
rmarkdown
28+
VignetteBuilder: knitr

NEWS.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# searcher 0.0.3.9200
1+
# searcher 0.0.4
22

33
## Features
44

55
- Added search portal:
66
- `search_rstudio_community()` or `search_rscom()`: Searches on [RStudio Community](https://community.rstudio.com/search).
77
(#13, #17)
8+
- Added vignette on search patterns (#18).
89

910
## Changes
1011

@@ -15,7 +16,7 @@
1516

1617
## Deployment
1718

18-
- Improve Travis CI testing deployments by testing across an array and using
19+
- Improved TravisCI testing deployments by testing across an array and using
1920
all CPUs allotted to build the container. (#16)
2021
- Modify thresholding for code coverage rejections. (#16)
2122

README.Rmd

Lines changed: 42 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,34 @@ knitr::opts_chunk$set(
1212
)
1313
```
1414

15+
# searcher
16+
1517
<!-- badges: start -->
1618
[![Travis-CI Build Status](https://travis-ci.org/r-assist/searcher.svg?branch=master)](https://travis-ci.org/r-assist/searcher)
1719
[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/searcher)](http://www.r-pkg.org/pkg/searcher)
1820
[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/searcher)](https://cran.r-project.org/package=searcher)
1921
[![Codecov test coverage](https://codecov.io/gh/r-assist/searcher/branch/master/graph/badge.svg)](https://codecov.io/gh/r-assist/searcher?branch=master)
2022
<!-- badges: end -->
2123

22-
# searcher
23-
2424
The goal of `searcher` is to provide a search interface directly inside of _R_.
25-
For example, within _R_, it is possible to look up `rcpp example numeric vector`
26-
or `ggplot2 fix axis labels` without having to
27-
open a browser, go to a search site, and type the query. By default,
28-
the search functions automatically search the last error on call if no
29-
query is specified.
25+
For example, to look up `rcpp example numeric vector`
26+
or `ggplot2 fix axis labels` call one of the `search_*()` functions to
27+
automatically have a web browser open, go to a search site, and type the query.
28+
By default, the search functions will attempt to search the last error on call
29+
if no query is specified.
3030

3131
![](https://i.imgur.com/Zq2rg6G.gif)
3232

3333
## Installation
3434

35-
The `searcher` package is available on both CRAN and GitHub. The CRAN
36-
version is considered stable while the GitHub version is in a state of
37-
development and may break. You can install the stable version of the
38-
`searcher` package with:
35+
The `searcher` package is available on both
36+
[CRAN](https://CRAN.R-project.org/package=searcher) and
37+
[GitHub](https://github.com/r-assist/searcher). The
38+
[CRAN](https://CRAN.R-project.org/package=searcher)
39+
version is considered stable while the [GitHub](https://github.com/r-assist/searcher)
40+
version is in a state of development and may break.
41+
42+
You can install the stable version of the `searcher` package with:
3943

4044
```r
4145
install.packages("searcher")
@@ -44,8 +48,7 @@ install.packages("searcher")
4448
For the development version, you can opt for:
4549

4650
```r
47-
install.packages("devtools")
48-
51+
if(!requireNamespace("devtools")) { install.packages("devtools") }
4952
devtools::install_github("r-assist/searcher")
5053
```
5154

@@ -58,7 +61,7 @@ library(searcher)
5861
## Search Terms
5962

6063
The `search_*()` functions can be used to search a query directly from _R_ on
61-
major search engines, code repositories, and help websites. The following search
64+
major search engines, programming help websites, and code repositories. The following search
6265
platforms are supported: [Google](https://google.com), [Bing](https://www.bing.com/),
6366
[DuckDuckGo](https://duckduckgo.com/), [Startpage](https://www.startpage.com/en/),
6467
[StackOverflow](https://stackoverflow.com/search),
@@ -135,7 +138,7 @@ search_bitbucket() # or search_bb()
135138
```
136139

137140

138-
# Motivation
141+
## Motivation
139142

140143
The idea for `searcher` began as a project to automatically search errors and
141144
warnings that occurred while working with _R_ after a conversation
@@ -151,12 +154,34 @@ approaches could be used. Thus, `searcher` was unintentionally born to
151154
provide a means for [`errorist`](https://github.com/r-assist/errorist), which
152155
contains a robust way to automatically searching errors and warnings.
153156

154-
# Special Thanks
157+
### Special Thanks
155158

156159
- [Dirk Eddelbuettel](http://dirk.eddelbuettel.com) for starting the discussion
157160
on [XKCD Comic 1185: Ineffective Sorts](https://xkcd.com/1185/).
158161
- [Barry Rowlingson](http://barry.rowlingson.com) for remarks about functionality.
159162

160-
# License
163+
### Publicity
164+
165+
On the [`#rstats`-twitter verse](https://twitter.com/search?q=%23rstats), `searcher` has been positively received by
166+
community members.
167+
168+
> R package "searcher" that automatically searches Stackoverflow for error that
169+
> you just saw in the console. Cool package, especially for those who learn R :)
170+
> https://github.com/coatless/searcher ... #r #rlang #rstats #rstudio
171+
>
172+
> --- [Paweł Przytuła](https://twitter.com/pawel_appsilon/status/1109545516264841216)
173+
> March 23th, 2019. ~292 Retweets and 876 likes
174+
175+
> Did you know, using "searcher" package, you could automatically to
176+
> search stackoverflow, google, GitHub and many more sites for errors,
177+
> packages or topics. #rstats
178+
>
179+
> --- [Shakirah Nakalungi](https://twitter.com/cynthia_kyra) June 29th, 2019, when she was [Rotating Curator for the "We are R-Ladies" twitter account](https://twitter.com/WeAreRLadies/status/1144921174251581440).
180+
> ~144 Retweets and 544 likes
181+
182+
Please let us know via an [issue ticket](https://github.com/r-assist/searcher/issues/new)
183+
about how you are using `searcher`.
184+
185+
## License
161186

162187
GPL (>= 2)

README.md

Lines changed: 52 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
<!-- README.md is generated from README.Rmd. Please edit that file -->
33

4+
# searcher
5+
46
<!-- badges: start -->
57

68
[![Travis-CI Build
@@ -12,23 +14,26 @@ downloads](http://cranlogs.r-pkg.org/badges/searcher)](http://www.r-pkg.org/pkg/
1214
coverage](https://codecov.io/gh/r-assist/searcher/branch/master/graph/badge.svg)](https://codecov.io/gh/r-assist/searcher?branch=master)
1315
<!-- badges: end -->
1416

15-
# searcher
16-
1717
The goal of `searcher` is to provide a search interface directly inside
18-
of *R*. For example, within *R*, it is possible to look up `rcpp example
19-
numeric vector` or `ggplot2 fix axis labels` without having to open a
20-
browser, go to a search site, and type the query. By default, the search
21-
functions automatically search the last error on call if no query is
22-
specified.
18+
of *R*. For example, to look up `rcpp example numeric vector` or
19+
`ggplot2 fix axis labels` call one of the `search_*()` functions to
20+
automatically have a web browser open, go to a search site, and type the
21+
query. By default, the search functions will attempt to search the last
22+
error on call if no query is specified.
2323

2424
![](https://i.imgur.com/Zq2rg6G.gif)
2525

2626
## Installation
2727

28-
The `searcher` package is available on both CRAN and GitHub. The CRAN
29-
version is considered stable while the GitHub version is in a state of
30-
development and may break. You can install the stable version of the
31-
`searcher` package with:
28+
The `searcher` package is available on both
29+
[CRAN](https://CRAN.R-project.org/package=searcher) and
30+
[GitHub](https://github.com/r-assist/searcher). The
31+
[CRAN](https://CRAN.R-project.org/package=searcher) version is
32+
considered stable while the
33+
[GitHub](https://github.com/r-assist/searcher) version is in a state of
34+
development and may break.
35+
36+
You can install the stable version of the `searcher` package with:
3237

3338
``` r
3439
install.packages("searcher")
@@ -37,8 +42,7 @@ install.packages("searcher")
3742
For the development version, you can opt for:
3843

3944
``` r
40-
install.packages("devtools")
41-
45+
if(!requireNamespace("devtools")) { install.packages("devtools") }
4246
devtools::install_github("r-assist/searcher")
4347
```
4448

@@ -51,9 +55,10 @@ library(searcher)
5155
## Search Terms
5256

5357
The `search_*()` functions can be used to search a query directly from
54-
*R* on major search engines, code repositories, and help websites. The
55-
following search platforms are supported: [Google](https://google.com),
56-
[Bing](https://www.bing.com/), [DuckDuckGo](https://duckduckgo.com/),
58+
*R* on major search engines, programming help websites, and code
59+
repositories. The following search platforms are supported:
60+
[Google](https://google.com), [Bing](https://www.bing.com/),
61+
[DuckDuckGo](https://duckduckgo.com/),
5762
[Startpage](https://www.startpage.com/en/),
5863
[StackOverflow](https://stackoverflow.com/search), [RStudio
5964
Community](https://community.rstudio.com/search),
@@ -130,7 +135,7 @@ search_github() # or search_gh()
130135
search_bitbucket() # or search_bb()
131136
```
132137

133-
# Motivation
138+
## Motivation
134139

135140
The idea for `searcher` began as a project to automatically search
136141
errors and warnings that occurred while working with *R* after a
@@ -149,14 +154,42 @@ provide a means for [`errorist`](https://github.com/r-assist/errorist),
149154
which contains a robust way to automatically searching errors and
150155
warnings.
151156

152-
# Special Thanks
157+
### Special Thanks
153158

154159
- [Dirk Eddelbuettel](http://dirk.eddelbuettel.com) for starting the
155160
discussion on [XKCD Comic 1185: Ineffective
156161
Sorts](https://xkcd.com/1185/).
157162
- [Barry Rowlingson](http://barry.rowlingson.com) for remarks about
158163
functionality.
159164

160-
# License
165+
### Publicity
166+
167+
On the [`#rstats`-twitter
168+
verse](https://twitter.com/search?q=%23rstats), `searcher` has been
169+
positively received by community members.
170+
171+
> R package “searcher” that automatically searches Stackoverflow for
172+
> error that you just saw in the console. Cool package, especially for
173+
> those who learn R :) <https://github.com/coatless/searcher>\#r
174+
> \#rlang \#rstats \#rstudio
175+
>
176+
> [Paweł
177+
> Przytuła](https://twitter.com/pawel_appsilon/status/1109545516264841216)
178+
> March 23th, 2019. \~292 Retweets and 876 likes
179+
180+
> Did you know, using “searcher” package, you could automatically to
181+
> search stackoverflow, google, GitHub and many more sites for errors,
182+
> packages or topics. \#rstats
183+
>
184+
> [Shakirah Nakalungi](https://twitter.com/cynthia_kyra) June 29th,
185+
> 2019, when she was [Rotating Curator for the “We are R-Ladies” twitter
186+
> account](https://twitter.com/WeAreRLadies/status/1144921174251581440).
187+
> \~144 Retweets and 544 likes
188+
189+
Please let us know via an [issue
190+
ticket](https://github.com/r-assist/searcher/issues/new) about how you
191+
are using `searcher`.
192+
193+
## License
161194

162195
GPL (\>= 2)

cran-comments.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
## Test environments
2-
* local OS X install, R 3.5.0
3-
* ubuntu 12.04 (on travis-ci), R 3.5.0
4-
* win-builder (devel and release)
2+
3+
- local OS X install, R 3.6.0
4+
- ubuntu 14.04 (on travis-ci), R 3.6.0
5+
- win-builder (devel and release)
56

67
## R CMD check results
78

8-
0 errors | 0 warnings | 1 note
9+
0 errors | 0 warnings | 0 note
910

10-
* This is a new release.
11+
- There were no notes associated with this release.
1112

1213
## Reverse dependencies
1314

14-
There is one reverse dependency:
15+
There are two reverse dependencies:
1516

1617
- `errorist`
18+
- `SemNetCleaner`
1719

18-
This reverse dependency built cleanly.
20+
These reverse dependency built cleanly.

vignettes/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.html
2+
*.R

0 commit comments

Comments
 (0)