Skip to content

Commit 63c856f

Browse files
authored
Rename ixquick to startpage (close #15) (#14)
* Bump roxygen version * Switch from coatless to r-assist * Add links to websits * Replace `search_ixquick` with `search_startpage` * Mark `search_ixquick()` as defunct * Export new search_startpage functions * Update readme with `search_startpage()` * Improve documentation * Re-render README.md * Bump package version * Update news entry
1 parent 85f4775 commit 63c856f

File tree

12 files changed

+143
-73
lines changed

12 files changed

+143
-73
lines changed

DESCRIPTION

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
Package: searcher
22
Title: Query Search Interfaces
3-
Version: 0.0.3
3+
Version: 0.0.3.9000
44
Authors@R: c(person("James", "Balamuta",
55
email = "[email protected]", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2826-8458")))
77
Description: Provides a search interface to look up terms
8-
on 'Google', 'Bing', 'ixquick', 'DuckDuckGo', 'StackOverflow', 'GitHub', and 'BitBucket'.
9-
Upon searching, a browser window will open with the aforementioned search
10-
results.
8+
on 'Google', 'Bing', 'DuckDuckGo', 'Startpage', 'StackOverflow', 'GitHub',
9+
and 'BitBucket'. Upon searching, a browser window will open with the
10+
aforementioned search results.
1111
URL: https://github.com/coatless/searcher
1212
BugReports: https://github.com/coatless/searcher/issues
1313
Depends: R (>= 3.0.0)
1414
License: GPL (>= 2)
1515
Encoding: UTF-8
1616
LazyData: true
17-
RoxygenNote: 6.0.1
17+
RoxygenNote: 6.1.1
1818
Roxygen: list(markdown = TRUE)
1919
Suggests: testthat,
2020
covr

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@ export(search_google)
1111
export(search_ixquick)
1212
export(search_site)
1313
export(search_so)
14+
export(search_sp)
1415
export(search_stackoverflow)
16+
export(search_startpage)
1517
export(searcher)

NEWS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# searcher 0.0.3.9000
2+
3+
## Changes
4+
5+
- Renamed search portal `search_ixquick()` to `search_startpage()` due to the
6+
merging of ixquick into startpage. (#15)
7+
8+
19
# searcher 0.0.3
210

311
## Features

R/defunct-functions.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#' Defunct functions in `searcher`
2+
#'
3+
#' Functions listed below are no longer included in the `searcher` package
4+
#'
5+
#' - [search_ixquick()]: The function binding was removed as the search engine
6+
#' name changed to "Startpage". Please use [search_startpage()].
7+
#'
8+
#' @name searcher-defunct
9+
NULL

R/search-functions.R

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
44
#' up the resulting page in a web browser.
55
#'
66
#' @param site Name of site to search on. Supported options:
7-
#' `"google"` (default), `"stackoverflow"`, `"github"`, `"bing"`,
8-
#' `"bitbucket"`
7+
#' `"google"` (default), `"bing"`, `"duckduckgo"`, `"startpage"`,
8+
#' `"stackoverflow"`, `"github"`, and `"bitbucket"`.
99
#' @param query Contents of string to search. Default is the error message.
1010
#' @param rlang Search for results written in R. Default is `TRUE`
1111
#'
1212
#' @return The generated search URL or an empty string.
1313
#'
1414
#' @rdname search_site
1515
#' @export
16-
#' @seealso [search_google()], [search_stackoverflow()], [search_github()],
17-
#' [search_bing()], [search_bitbucket()], [searcher()]
16+
#' @seealso [search_google()], [search_bing()], [search_duckduckgo()],
17+
#' [search_startpage()], [search_stackoverflow()], [search_github()],
18+
#' [search_bitbucket()], [searcher()]
1819
#' @examples
1920
#' # Search in a generic way
2021
#' search_site("r-project", "google")
@@ -28,8 +29,8 @@
2829
#' # Search DuckDuckGo
2930
#' search_duckduckgo("R language")
3031
#'
31-
#' # Search ixquick
32-
#' search_ixquick("RStudio IDE")
32+
#' # Search startpage
33+
#' search_startpage("RStudio IDE")
3334
#'
3435
#' # Search StackOverflow for Convolutions in the r tag
3536
#' search_stackoverflow("convolutions")
@@ -63,7 +64,8 @@ search_site = function(query,
6364
"ddg",
6465
"bitbucket",
6566
"bb",
66-
"ixquick"
67+
"startpage",
68+
"sp"
6769
),
6870
rlang = TRUE) {
6971
site = tolower(site)
@@ -85,7 +87,8 @@ search_site = function(query,
8587
duckduckgo = ,
8688
# empty case carried below
8789
ddg = search_duckduckgo(query, rlang),
88-
ixquick = search_ixquick(query, rlang)
90+
startpage = ,
91+
sp = search_startpage(query, rlang)
8992
)
9093
}
9194

@@ -120,14 +123,15 @@ searcher = function(site = c(
120123
"google",
121124
"bing",
122125
"ddg",
126+
"sp",
123127
"so",
124128
"gh",
125129
"bb",
126130
"duckduckgo",
127131
"stackoverflow",
128132
"github",
129133
"bitbucket",
130-
"ixquick"
134+
"startpage"
131135
),
132136
rlang = TRUE) {
133137
function(query = geterrmessage(), rlang = rlang) {
@@ -196,25 +200,35 @@ search_ddg = search_duckduckgo
196200

197201
#' @rdname search_site
198202
#' @export
199-
#' @section ixquick Search:
200-
#' The `search_ixquick()` function searches
201-
#' [ixquick](https://ixquick.com) using:
202-
#' \code{https://ixquick.com/do/dsearch?query=<query>}
203+
search_ixquick = function(query = geterrmessage(), rlang = TRUE) {
204+
.Defunct(msg = "ixquick is now startpage, please use `search_startpage()`.")
205+
}
206+
207+
#' @rdname search_site
208+
#' @export
209+
#' @section Startpage Search:
210+
#' The `search_startpage()` function searches
211+
#' [startpage](https://startpage.com) using:
212+
#' \code{https://startpage.com/do/dsearch?query=<query>}
203213
#'
204-
#' For additional details regarding [ixquick](https://ixquick.com)'s
214+
#' For additional details regarding [startpage](https://startpage.com)'s
205215
#' search interface please see:
206-
#' \url{https://support.ixquick.com/index.php?/Knowledgebase/Article/View/201/0/how-do-i-make-startpage-by-ixquick-my-default-search-engine-in-chrome}
207-
search_ixquick = function(query = geterrmessage(), rlang = TRUE) {
216+
#' \url{https://support.startpage.com/index.php?/Knowledgebase/Article/View/1261/0/add-familystartpagecom-as-the-default-search-engine-in-chrome}
217+
search_startpage = function(query = geterrmessage(), rlang = TRUE) {
208218
if (!valid_query(query)) {
209219
message("Please provide only 1 `query` term that is not empty.")
210220
return(invisible(""))
211221
}
212222

213223
query = append_r_suffix(query, rlang = rlang)
214224

215-
browse_url("https://ixquick.com/do/dsearch?query=", query)
225+
browse_url("https://startpage.com/do/dsearch?query=", query)
216226
}
217227

228+
#' @rdname search_site
229+
#' @export
230+
search_sp = search_startpage
231+
218232
########################### End Search Engines
219233

220234

README.Rmd

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ knitr::opts_chunk$set(
1212
)
1313
```
1414

15-
[![Travis-CI Build Status](https://travis-ci.org/coatless/searcher.svg?branch=master)](https://travis-ci.org/coatless/searcher)[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/searcher)](http://www.r-pkg.org/pkg/searcher)[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/searcher)](https://cran.r-project.org/package=searcher)[![Coverage Status](https://img.shields.io/codecov/c/github/coatless/searcher/master.svg)](https://codecov.io/github/coatless/searcher?branch=master)
15+
[![Travis-CI Build Status](https://travis-ci.org/r-assist/searcher.svg?branch=master)](https://travis-ci.org/r-assist/searcher)
16+
[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/searcher)](http://www.r-pkg.org/pkg/searcher)
17+
[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/searcher)](https://cran.r-project.org/package=searcher)
18+
[![Coverage Status](https://img.shields.io/codecov/c/github/r-assist/searcher/master.svg)](https://codecov.io/github/r-assist/searcher?branch=master)
1619

1720
# searcher
1821

@@ -40,7 +43,7 @@ For the development version, you can opt for:
4043
```r
4144
install.packages("devtools")
4245

43-
devtools::install_github("coatless/searcher")
46+
devtools::install_github("r-assist/searcher")
4447
```
4548

4649
## Usage
@@ -53,17 +56,20 @@ library(searcher)
5356

5457
The `search_*()` functions can be used to search a query directly from _R_ on
5558
major search engines, code repositories, and help websites. The following search
56-
platforms are supported: Google, Bing, ixquick, DuckDuckGo, StackOverflow, GitHub,
57-
and BitBucket. By default, an appropriate suffix for each platform that ensures
58-
relevant results to _R_ is appended to all queries. This behavior can be
59-
disabled by using `rlang = FALSE`.
59+
platforms are supported: [Google](https://google.com), [Bing](https://www.bing.com/),
60+
[DuckDuckGo](https://duckduckgo.com/), [Startpage](https://www.startpage.com/en/),
61+
[StackOverflow](https://stackoverflow.com/search),
62+
[GitHub](https://github.com/search), and [BitBucket](https://bitbucket.com/search).
63+
By default, an appropriate suffix for each platform that ensures relevant
64+
results to _R_ is appended to all queries. This behavior can be disabled by
65+
using `rlang = FALSE`.
6066

6167
```r
6268
# Searching R project on major search engines
6369
search_google("R project")
6470
search_bing("R project")
65-
search_ixquick("R project")
6671
search_duckduckgo("R project") # or search_ddg(...)
72+
search_startpage("R project") # or search_sp(...)
6773

6874
# Searching for linear regression questions for R and in general
6975
search_stackoverflow("linear regression")
@@ -84,7 +90,7 @@ search_bitbucket("assertions", rlang = FALSE) # or search_bb(...)
8490
`searcher` offers preliminary support for automatically or manually
8591
searching errors that are generated in _R_. For more robust error search
8692
support and to also search warning messages, please use the
87-
[`errorist`](https://github.com/coatless/errorist) package.
93+
[`errorist`](https://github.com/r-assist/errorist) package.
8894

8995
### Automatically
9096

@@ -113,6 +119,7 @@ the last error message as the search query on the desired search portal.
113119
search_google()
114120
search_bing()
115121
search_duckduckgo() # or search_ddg()
122+
search_startpage() # or search_sp()
116123
search_stackoverflow() # or search_so()
117124
search_github() # or search_gh()
118125
search_bitbucket() # or search_bb()
@@ -132,7 +139,7 @@ package, which queries an off-site user premade database. Both of these options
132139
were focused solely on querying _R_ documentation made available by packages.
133140
Given the nature of errors generally being _undocumented_, neither of these
134141
approaches could be used. Thus, `searcher` was unintentionally born to
135-
provide a means for [`errorist`](https://github.com/coatless/errorist), which
142+
provide a means for [`errorist`](https://github.com/r-assist/errorist), which
136143
contains a robust way to automatically searching errors and warnings.
137144

138145
# Special Thanks

README.md

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
<!-- README.md is generated from README.Rmd. Please edit that file -->
33

44
[![Travis-CI Build
5-
Status](https://travis-ci.org/coatless/searcher.svg?branch=master)](https://travis-ci.org/coatless/searcher)[![CRAN
6-
RStudio mirror
7-
downloads](http://cranlogs.r-pkg.org/badges/searcher)](http://www.r-pkg.org/pkg/searcher)[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/searcher)](https://cran.r-project.org/package=searcher)[![Coverage
8-
Status](https://img.shields.io/codecov/c/github/coatless/searcher/master.svg)](https://codecov.io/github/coatless/searcher?branch=master)
5+
Status](https://travis-ci.org/r-assist/searcher.svg?branch=master)](https://travis-ci.org/r-assist/searcher)
6+
[![CRAN RStudio mirror
7+
downloads](http://cranlogs.r-pkg.org/badges/searcher)](http://www.r-pkg.org/pkg/searcher)
8+
[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/searcher)](https://cran.r-project.org/package=searcher)
9+
[![Coverage
10+
Status](https://img.shields.io/codecov/c/github/r-assist/searcher/master.svg)](https://codecov.io/github/r-assist/searcher?branch=master)
911

1012
# searcher
1113

@@ -34,7 +36,7 @@ For the development version, you can opt for:
3436
``` r
3537
install.packages("devtools")
3638

37-
devtools::install_github("coatless/searcher")
39+
devtools::install_github("r-assist/searcher")
3840
```
3941

4042
## Usage
@@ -47,18 +49,22 @@ library(searcher)
4749

4850
The `search_*()` functions can be used to search a query directly from
4951
*R* on major search engines, code repositories, and help websites. The
50-
following search platforms are supported: Google, Bing, ixquick,
51-
DuckDuckGo, StackOverflow, GitHub, and BitBucket. By default, an
52-
appropriate suffix for each platform that ensures relevant results to
53-
*R* is appended to all queries. This behavior can be disabled by using
54-
`rlang = FALSE`.
52+
following search platforms are supported: [Google](https://google.com),
53+
[Bing](https://www.bing.com/), [DuckDuckGo](https://duckduckgo.com/),
54+
[Startpage](https://www.startpage.com/en/),
55+
[StackOverflow](https://stackoverflow.com/search),
56+
[GitHub](https://github.com/search), and
57+
[BitBucket](https://bitbucket.com/search). By default, an appropriate
58+
suffix for each platform that ensures relevant results to *R* is
59+
appended to all queries. This behavior can be disabled by using `rlang =
60+
FALSE`.
5561

5662
``` r
5763
# Searching R project on major search engines
5864
search_google("R project")
5965
search_bing("R project")
60-
search_ixquick("R project")
6166
search_duckduckgo("R project") # or search_ddg(...)
67+
search_startpage("R project") # or search_sp(...)
6268

6369
# Searching for linear regression questions for R and in general
6470
search_stackoverflow("linear regression")
@@ -78,7 +84,7 @@ search_bitbucket("assertions", rlang = FALSE) # or search_bb(...)
7884
`searcher` offers preliminary support for automatically or manually
7985
searching errors that are generated in *R*. For more robust error search
8086
support and to also search warning messages, please use the
81-
[`errorist`](https://github.com/coatless/errorist) package.
87+
[`errorist`](https://github.com/r-assist/errorist) package.
8288

8389
### Automatically
8490

@@ -109,6 +115,7 @@ search portal.
109115
search_google()
110116
search_bing()
111117
search_duckduckgo() # or search_ddg()
118+
search_startpage() # or search_sp()
112119
search_stackoverflow() # or search_so()
113120
search_github() # or search_gh()
114121
search_bitbucket() # or search_bb()
@@ -129,7 +136,7 @@ an off-site user premade database. Both of these options were focused
129136
solely on querying *R* documentation made available by packages. Given
130137
the nature of errors generally being *undocumented*, neither of these
131138
approaches could be used. Thus, `searcher` was unintentionally born to
132-
provide a means for [`errorist`](https://github.com/coatless/errorist),
139+
provide a means for [`errorist`](https://github.com/r-assist/errorist),
133140
which contains a robust way to automatically searching errors and
134141
warnings.
135142

0 commit comments

Comments
 (0)