Skip to content

Commit dfee4da

Browse files
committed
Clean up bad URLs (404/Twitter's 403/others forbidden).
1 parent a3bf53f commit dfee4da

File tree

7 files changed

+64
-70
lines changed

7 files changed

+64
-70
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: searcher
22
Title: Query Search Interfaces
3-
Version: 0.0.6
3+
Version: 0.0.7
44
Authors@R: c(
55
person("James", "Balamuta",
66
email = "[email protected]",

NEWS.md

+19-20
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,21 @@
44

55
- Added search portals:
66
- `search_grep()`: Searches on grep.app.
7-
([#35](https://github.com/r-assist/searcher/issues/35),
8-
[#37](https://github.com/r-assist/searcher/pull/37))
7+
([#35](https://github.com/coatless-rpkg/searcher/issues/35),
8+
[#37](https://github.com/coatless-rpkg/searcher/pull/37))
99
- `search_qwant()`: Searches on Qwant.
10-
([#36](https://github.com/r-assist/searcher/issues/36),
11-
[#38](https://github.com/r-assist/searcher/pull/38))
10+
([#36](https://github.com/coatless-rpkg/searcher/issues/36))
1211

1312
# searcher 0.0.6
1413

1514
## Features
1615

1716
- Added search portals:
1817
- `search_ecosia()`: Searches on Ecosia.
19-
([#31](https://github.com/r-assist/searcher/issues/31),
20-
[#32](https://github.com/r-assist/searcher/pull/32))
18+
([#31](https://github.com/coatless-rpkg/searcher/issues/31),
19+
[#32](https://github.com/coatless-rpkg/searcher/pull/32))
2120
- `search_rseek()`: Searches on [rseek](https://rseek.org/).
22-
([#32](https://github.com/r-assist/searcher/pull/33), thanks [@rossellhayes](https://github.com/rossellhayes)!)
21+
([#32](https://github.com/coatless-rpkg/searcher/pull/33), thanks [@rossellhayes](https://github.com/rossellhayes)!)
2322

2423
## Bug Fixes
2524

@@ -29,20 +28,20 @@
2928
## Deployment
3029

3130
- Updated [GitHub Actions for R](https://github.com/r-lib/actions) workflows
32-
([#34](https://github.com/r-assist/searcher/pull/34)).
33-
- Added pkgdown website ([#34](https://github.com/r-assist/searcher/pull/34)).
31+
([#34](https://github.com/coatless-rpkg/searcher/pull/34)).
32+
- Added pkgdown website ([#34](https://github.com/coatless-rpkg/searcher/pull/34)).
3433

3534
# searcher 0.0.5
3635

3736
## Features
3837

3938
- Added search portal:
40-
- `search_twitter()`: Searches on [Twitter](https://twitter.com/search).
41-
([#19](https://github.com/r-assist/searcher/issues/19),
42-
[#30](https://github.com/r-assist/searcher/pull/30))
39+
- `search_twitter()`: Searches on Twitter.
40+
([#19](https://github.com/coatless-rpkg/searcher/issues/19),
41+
[#30](https://github.com/coatless-rpkg/searcher/pull/30))
4342
- Added ability to set default package actions.
44-
([#7](https://github.com/r-assist/searcher/issues/7),
45-
[#20](https://github.com/r-assist/searcher/pull/20))
43+
([#7](https://github.com/coatless-rpkg/searcher/issues/7),
44+
[#20](https://github.com/coatless-rpkg/searcher/pull/20))
4645
- `searcher.launch_delay` controls how long the user remains in _R_ prior
4746
to the browser opening. Default is `0.5` seconds.
4847
- `searcher.use_rstudio_viewer` specifies whether RStudio's viewer pane should
@@ -52,8 +51,8 @@
5251
between either `"base"` or `"tidyverse"`. Default is `"base"`.
5352
- Added option to launch RStudio's Viewer pane to display search results.
5453
- Note: This feature requires a patch per [rstudio/rstudio#2252](https://github.com/rstudio/rstudio/issues/2252).
55-
([#21](https://github.com/r-assist/searcher/issues/21),
56-
[#22](https://github.com/r-assist/searcher/pull/22))
54+
([#21](https://github.com/coatless-rpkg/searcher/issues/21),
55+
[#22](https://github.com/coatless-rpkg/searcher/pull/22))
5756

5857
## Breaking Changes
5958

@@ -68,11 +67,11 @@
6867

6968
## Deployment
7069

71-
- Switched from using [TravisCI](http://travis-ci.com/) to using
70+
- Switched from using [TravisCI](https://www.travis-ci.com/) to using
7271
[GitHub Actions for R](https://github.com/r-lib/actions).
73-
([#25](https://github.com/r-assist/searcher/issues/25),
74-
[#27](https://github.com/r-assist/searcher/pull/27))
75-
- Improved code coverage of unit tests ([#29](https://github.com/r-assist/searcher/pull/29))
72+
([#25](https://github.com/coatless-rpkg/searcher/issues/25),
73+
[#27](https://github.com/coatless-rpkg/searcher/pull/27))
74+
- Improved code coverage of unit tests ([#29](https://github.com/coatless-rpkg/searcher/pull/29))
7675

7776
# searcher 0.0.4
7877

R/search-functions.R

+9-13
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ searcher = function(site, keyword = getOption("searcher.default_keyword")) {
173173
#' The `search_google` function searches [Google](https://www.google.com/) using:
174174
#' `https://www.google.com/search?q=<query>`
175175
#'
176-
#' See \url{https://moz.com/blog/the-ultimate-guide-to-the-google-search-parameters}
176+
#' See \url{https://moz.com/learn/seo/search-operators}
177177
#' for details.
178178
search_google = searcher("google")
179179

@@ -208,10 +208,6 @@ search_ixquick = function(query = geterrmessage(), rlang = TRUE) {
208208
#' The `search_startpage()` function searches
209209
#' [startpage](https://startpage.com) using:
210210
#' \code{https://startpage.com/do/dsearch?query=<query>}
211-
#'
212-
#' For additional details regarding [startpage](https://startpage.com)'s
213-
#' search interface please see:
214-
#' \url{https://support.startpage.com/index.php?/Knowledgebase/Article/View/1261/0/add-familystartpagecom-as-the-default-search-engine-in-chrome}
215211
search_startpage = searcher("sp")
216212

217213
#' @rdname search_site
@@ -227,7 +223,7 @@ search_sp = search_startpage
227223
#'
228224
#' For additional details regarding Ecosia's
229225
#' search interface please see:
230-
#' \url{https://ecosia.zendesk.com/hc/en-us}
226+
#' \url{https://ecosia.helpscoutdocs.com/article/502-ecosia-on-desktop}
231227
search_ecosia = searcher("ecosia")
232228

233229
#' @rdname search_site
@@ -241,7 +237,7 @@ search_rseek = searcher("rseek")
241237
#' @export
242238
#' @section Qwant Search:
243239
#' The `search_qwant()` function searches
244-
#' [Qwant](https://qwant.com) using: `https://www.qwant.com/?q=<query>`
240+
#' Qwant using: `https://www.qwant.com/?q=<query>`
245241
search_qwant = searcher("qwant")
246242

247243
########################### End Search Engines
@@ -270,12 +266,12 @@ search_rscom = search_rstudio_community
270266
#' @export
271267
#' @section Twitter Search:
272268
#' The `search_twitter()` functions search
273-
#' [Twitter](https://twitter.com/) using:
269+
#' Twitter using:
274270
#' \code{https://twitter.com/search?q=<query>}
275271
#'
276-
#' For additional details regarding [Twitter](https://twitter.com/)'s
272+
#' For additional details regarding Twitter's
277273
#' search interface please see:
278-
#' \url{https://help.twitter.com/en/using-twitter/twitter-advanced-search}
274+
#' `https://help.twitter.com/en/using-x/x-advanced-search`
279275
search_twitter = searcher("twitter")
280276

281277
#' @rdname search_site
@@ -287,7 +283,7 @@ search_twitter = searcher("twitter")
287283
#'
288284
#' For additional details regarding [StackOverflow](https://stackoverflow.com)'s
289285
#' search interface please see:
290-
#' \url{https://stackoverflow.com/help/advanced-search-parameters-jobs}
286+
#' `https://stackoverflow.com/help/searching`
291287
search_stackoverflow = searcher("so")
292288

293289
#' @rdname search_site
@@ -307,8 +303,8 @@ search_so = search_stackoverflow
307303
#'
308304
#' For additional details regarding [GitHub](https://github.com)'s
309305
#' search interface please see:
310-
#' \url{https://help.github.com/categories/searching-for-information-on-github/}
311-
#' and \url{https://help.github.com/articles/searching-code/}
306+
#' <https://docs.github.com/en/enterprise-cloud@latest/search-github/getting-started-with-searching-on-github/about-searching-on-github>
307+
#' and <https://docs.github.com/en/search-github/searching-on-github/searching-code/>
312308
search_github = searcher("gh")
313309

314310
#' @rdname search_site

README.Rmd

+4-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ knitr::opts_chunk$set(
1818
[![R-CMD-check](https://github.com/coatless-rpkg/searcher/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/coatless-rpkg/searcher/actions/workflows/R-CMD-check.yaml)
1919
[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/searcher)](https://www.r-pkg.org/pkg/searcher)
2020
[![CRAN\_Status\_Badge](https://www.r-pkg.org/badges/version/searcher)](https://cran.r-project.org/package=searcher)
21-
[![Codecov test coverage](https://codecov.io/gh/coatless-rpkg/searcher/branch/master/graph/badge.svg)](https://codecov.io/gh/coatless-rpkg/searcher?branch=master)
2221
<!-- badges: end -->
2322

2423
The goal of `searcher` is to provide a search interface directly inside of _R_.
@@ -64,7 +63,7 @@ The `search_*()` functions can be used to search a query directly from _R_ on
6463
major search engines, programming help websites, and code repositories. The following search
6564
platforms are supported: [Google](https://www.google.com), [Bing](https://www.bing.com/),
6665
[DuckDuckGo](https://duckduckgo.com/), [Startpage](https://www.startpage.com/en/),
67-
Ecosia, [rseek](https://rseek.org/), [Qwant](https://qwant.com/), [Twitter](https://twitter.com/search), [StackOverflow](https://stackoverflow.com/search),
66+
Ecosia, [rseek](https://rseek.org/), Qwant, X (formerly Twitter), [StackOverflow](https://stackoverflow.com/),
6867
[RStudio Community](https://community.rstudio.com/search),
6968
[GitHub](https://github.com/search), [grep.app](https://grep.app/),
7069
and [BitBucket](https://bitbucket.org/product/).
@@ -210,21 +209,21 @@ contains a robust way to automatically searching errors and warnings.
210209

211210
### Publicity
212211

213-
On the [`#rstats`-twitter verse](https://twitter.com/search?q=%23rstats), `searcher` has been positively received by
212+
On the `#rstats`-twitter verse (c.f. `https://twitter.com/search?q=%23rstats`), `searcher` has been positively received by
214213
community members.
215214

216215
> R package "searcher" that automatically searches Stackoverflow for error that
217216
> you just saw in the console. Cool package, especially for those who learn R :)
218217
> https://github.com/coatless-rpkg/searcher ... #r #rlang #rstats #rstudio
219218
>
220-
> --- [Paweł Przytuła](https://twitter.com/pawel_appsilon/status/1109545516264841216)
219+
> --- Paweł Przytuła
221220
> March 23th, 2019. ~292 Retweets and 876 likes (Note, URL updated to new repository location.)
222221
223222
> Did you know, using "searcher" package, you could automatically to
224223
> search stackoverflow, google, GitHub and many more sites for errors,
225224
> packages or topics. #rstats
226225
>
227-
> --- [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).
226+
> --- Shakirah Nakalungi (c.f. `https://twitter.com/cynthia_kyra`) June 29th, 2019, when she was Rotating Curator for the "We are R-Ladies" twitter account (c.f. `https://twitter.com/WeAreRLadies/status/1144921174251581440`)
228227
> ~144 Retweets and 544 likes
229228
230229
Please let us know via an [issue ticket](https://github.com/coatless-rpkg/searcher/issues/new)

README.md

+19-15
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
[![CRAN RStudio mirror
1010
downloads](https://cranlogs.r-pkg.org/badges/searcher)](https://www.r-pkg.org/pkg/searcher)
1111
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/searcher)](https://cran.r-project.org/package=searcher)
12-
[![Codecov test
13-
coverage](https://codecov.io/gh/coatless-rpkg/searcher/branch/master/graph/badge.svg)](https://codecov.io/gh/coatless-rpkg/searcher?branch=master)
1412
<!-- badges: end -->
1513

1614
The goal of `searcher` is to provide a search interface directly inside
@@ -59,10 +57,10 @@ repositories. The following search platforms are supported:
5957
[Google](https://www.google.com), [Bing](https://www.bing.com/),
6058
[DuckDuckGo](https://duckduckgo.com/),
6159
[Startpage](https://www.startpage.com/en/), Ecosia,
62-
[rseek](https://rseek.org/), [Twitter](https://twitter.com/search),
63-
[StackOverflow](https://stackoverflow.com/search), [RStudio
60+
[rseek](https://rseek.org/), Qwant, X (formerly Twitter),
61+
[StackOverflow](https://stackoverflow.com/), [RStudio
6462
Community](https://community.rstudio.com/search),
65-
[GitHub](https://github.com/search), and
63+
[GitHub](https://github.com/search), [grep.app](https://grep.app/), and
6664
[BitBucket](https://bitbucket.org/product/). By default, an appropriate
6765
suffix for each platform that ensures relevant results to *R* is
6866
appended to all queries. This behavior can be disabled by using
@@ -74,6 +72,7 @@ search_google("R project")
7472
search_bing("R project")
7573
search_ecosia("R project")
7674
search_rseek("R project")
75+
search_qwant("R project")
7776
search_duckduckgo("R project") # or search_ddg(...)
7877
search_startpage("R project") # or search_sp(...)
7978

@@ -89,6 +88,10 @@ search_stackoverflow("linear regression", rlang = FALSE) # or search_so(...)
8988
search_rstudio_community("tips")
9089
search_rstudio_community("tips", rlang = FALSE) # or search_rscom(...)
9190

91+
# Searching GitHub code for graphs in R and other languages
92+
search_grep("graph")
93+
search_grep("graph", rlang = FALSE)
94+
9295
# Searching GitHub Issues for maps in R and other languages
9396
search_github("maps")
9497
search_github("maps", rlang = FALSE) # or search_gh(...)
@@ -135,7 +138,9 @@ search_google()
135138
search_bing()
136139
search_ecosia()
137140
search_rseek()
141+
search_qwant()
138142
search_twitter()
143+
search_grep()
139144
search_duckduckgo() # or search_ddg()
140145
search_startpage() # or search_sp()
141146
search_stackoverflow() # or search_so()
@@ -209,28 +214,27 @@ a robust way to automatically searching errors and warnings.
209214

210215
### Publicity
211216

212-
On the [`#rstats`-twitter
213-
verse](https://twitter.com/search?q=%23rstats), `searcher` has been
217+
On the `#rstats`-twitter verse (c.f.
218+
`https://twitter.com/search?q=%23rstats`), `searcher` has been
214219
positively received by community members.
215220

216221
> R package “searcher” that automatically searches Stackoverflow for
217222
> error that you just saw in the console. Cool package, especially for
218223
> those who learn R :) <https://github.com/coatless-rpkg/searcher>\#r
219224
> \#rlang \#rstats \#rstudio
220225
>
221-
> [Paweł
222-
> Przytuła](https://twitter.com/pawel_appsilon/status/1109545516264841216)
223-
> March 23th, 2019. ~292 Retweets and 876 likes (Note, URL updated to
224-
> new repository location.)
226+
> — Paweł Przytuła March 23th, 2019. ~292 Retweets and 876 likes (Note,
227+
> URL updated to new repository location.)
225228
226229
> Did you know, using “searcher” package, you could automatically to
227230
> search stackoverflow, google, GitHub and many more sites for errors,
228231
> packages or topics. \#rstats
229232
>
230-
> [Shakirah Nakalungi](https://twitter.com/cynthia_kyra) June 29th,
231-
> 2019, when she was [Rotating Curator for the “We are R-Ladies” twitter
232-
> account](https://twitter.com/WeAreRLadies/status/1144921174251581440).
233-
> ~144 Retweets and 544 likes
233+
> — Shakirah Nakalungi (c.f. `https://twitter.com/cynthia_kyra`) June
234+
> 29th, 2019, when she was Rotating Curator for the “We are R-Ladies”
235+
> twitter account (c.f.
236+
> `https://twitter.com/WeAreRLadies/status/1144921174251581440`) ~144
237+
> Retweets and 544 likes
234238
235239
Please let us know via an [issue
236240
ticket](https://github.com/coatless-rpkg/searcher/issues/new) about how

man/search_site.Rd

+9-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/search-patterns.Rmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ _R_-specific results. If `rlang = FALSE`, then the results are generalized.
6363
- `"r programming"` was selected because it performed best when compared
6464
to `"rlang"`, `"rstats"`, and `"r language"` on [Google Trends](https://trends.google.com/trends/).
6565
- Community Sites
66-
- [StackOverflow Search](https://stackoverflow.com/search): ` <query> + [r]`
67-
- [Twitter](https://twitter.com/search): `<query> + #rstats`
66+
- [StackOverflow](https://stackoverflow.com/): ` <query> + [r]`
67+
- Twitter: `<query> + #rstats`
6868
- [RStudio Community](https://community.rstudio.com/search): `<query>`
6969
- [Rseek](https://rseek.org/): `<query>`
7070
- Code Repositories
@@ -89,5 +89,5 @@ To improve your _R_-related search query, it has been suggested to use:
8989

9090
Suggestions here were pooled from discussion on rOpenSci's slack with
9191
[Steph Locke](https://itsalocke.com/blog/) and
92-
[Robert Mitchell](http://robertmitchellv.com/).
92+
[Robert Mitchell](https://robertmitchellv.com/).
9393

0 commit comments

Comments
 (0)