Skip to content

Commit 20ef8cf

Browse files
authored
Deprecate search_rstudio_community()/search_rscom(). (#43)
* Deprecate `search_rstudio_community()`/`search_rscom()`. Replace with `search_posit_community()`/`search_posit()`. Fix moved URLs * PR Number
1 parent b789361 commit 20ef8cf

File tree

10 files changed

+66
-58
lines changed

10 files changed

+66
-58
lines changed

NAMESPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export(search_google)
2626
export(search_grep)
2727
export(search_ixquick)
2828
export(search_kagi)
29+
export(search_posit)
30+
export(search_posit_community)
2931
export(search_qwant)
30-
export(search_rscom)
3132
export(search_rseek)
32-
export(search_rstudio_community)
3333
export(search_site)
3434
export(search_so)
3535
export(search_sp)

NEWS.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- `ask_mistral()`: Searches with Mistral AI
1010
- `ask_copilot()`: Searches with Microsoft Bing's Copilot
1111
- `ask_meta_ai()`: Searches with Meta AI
12-
- Added an AI Prompt Management System with Persona Prompts
12+
- Added an AI Prompt Management System with Persona Prompts:
1313
- `ai_prompt()`: Set a prompt for the AI
1414
- `ai_prompt_active()`: View the active prompt
1515
- `ai_prompt_clear()`: Clear the active prompt
@@ -26,6 +26,11 @@
2626
([#42](https://github.com/coatless-rpkg/searcher/pull/42))
2727
- Added searcher logo ([#40](https://github.com/coatless-rpkg/searcher/pull/40))
2828

29+
## Deprecations
30+
31+
- Deprecated `search_rstudio_community()` and `search_rscom()` functions. ([#43](https://github.com/coatless-rpkg/searcher/pull/43))
32+
- These functions are now replaced by `search_posit_community()`/`search_posit()`
33+
which searches [Posit Community](https://community.posit.co/search).
2934

3035
# searcher 0.0.7
3136

@@ -107,7 +112,7 @@
107112
## Features
108113

109114
- Added search portal:
110-
- `search_rstudio_community()` or `search_rscom()`: Searches on [RStudio Community](https://community.rstudio.com/search).
115+
- `search_rstudio_community()` or `search_rscom()`: Searches on RStudio Community.
111116
(#13, #17)
112117
- Added vignette on search patterns (#18).
113118

R/index-sites.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ site_index =
6060
keyword_entry("[r]", "[tidyverse]")
6161
),
6262
site_entry(
63-
"rstudio community",
64-
"https://community.rstudio.com/search?q=",
65-
"rscom",
63+
"posit community",
64+
"https://community.posit.co/search?q=",
65+
"posit",
6666
NULL
6767
),
6868
site_entry(

R/search-functions.R

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
#'
66
#' @param site Name of site to search on. Supported options:
77
#' `"google"` (default), `"bing"`, `"duckduckgo"`, `"startpage"`,
8-
#' `"qwant"`,`"rstudio community"`, `"twitter"`,`"stackoverflow"`,
8+
#' `"qwant"`,`"posit community"`, `"brave"`, `"kagi"`,
9+
#' `"twitter"`, `"stackoverflow"`,
910
#' `"github"`, `"grep"`, and `"bitbucket"`.
1011
#' @param query Contents of string to search. Default is the error message.
1112
#' @param rlang Search for results written in R. Default is `TRUE`
@@ -20,7 +21,7 @@
2021
#' @seealso [search_google()], [search_bing()], [search_duckduckgo()],
2122
#' [search_startpage()], [search_rseek()], [search_qwant()],
2223
#' [search_brave()], [search_kagi()], [search_twitter()],
23-
#' [search_rstudio_community()], [search_stackoverflow()],
24+
#' [search_posit_community()], [search_stackoverflow()],
2425
#' [search_github()], [search_grep()], [search_bitbucket()], and [searcher()]
2526
#' @examples
2627
#' # Search in a generic way
@@ -47,8 +48,8 @@
4748
#' # Search Brave
4849
#' search_brave("webR")
4950
#'
50-
#' # Search RStudio Community
51-
#' search_rstudio_community("RStudio IDE")
51+
#' # Search Posit Community
52+
#' search_posit_community("RStudio IDE")
5253
#'
5354
#' # Search Twitter
5455
#' search_twitter("searcher")
@@ -91,8 +92,8 @@ search_site = function(query,
9192
"rseek",
9293
"brave",
9394
"kagi",
94-
"rstudio community",
95-
"rscom",
95+
"posit community",
96+
"posit",
9697
"twitter",
9798
"stackoverflow",
9899
"so",
@@ -127,8 +128,8 @@ search_site = function(query,
127128
rseek = search_rseek(query, rlang),
128129
brave = search_brave(query, rlang),
129130
kagi = search_kagi(query, rlang),
130-
`rstudio community` = , # empty case carried below
131-
rscom = search_rstudio_community(query, rlang),
131+
`posit community` = , # empty case carried below
132+
posit = search_posit_community(query, rlang),
132133
twitter = search_twitter(query, rlang),
133134
stackoverflow = , # empty case carried below
134135
so = search_stackoverflow(query, rlang),
@@ -252,7 +253,7 @@ search_sp = search_startpage
252253
#'
253254
#' For additional details regarding Ecosia's
254255
#' search interface please see:
255-
#' \url{https://ecosia.helpscoutdocs.com/article/502-ecosia-on-desktop}
256+
#' \url{https://support.ecosia.org/article/657-installing-ecosia-on-your-desktop-device}
256257
search_ecosia = searcher("ecosia")
257258

258259
#' @rdname search_site
@@ -294,19 +295,19 @@ search_kagi = searcher("kagi")
294295

295296
#' @rdname search_site
296297
#' @export
297-
#' @section RStudio Community Search:
298-
#' The `search_rstudio_community()` and `search_rscom()` functions both search
299-
#' [RStudio Community](https://community.rstudio.com/) using:
300-
#' \code{https://community.rstudio.com/search?q=<query>}
298+
#' @section Posit Community Search:
299+
#' The `search_posit_community()` and `search_posit()` functions both search
300+
#' [Posit Community](https://forum.posit.co/) using:
301+
#' \code{https://forum.posit.co/search?q=<query>}
301302
#'
302-
#' For additional details regarding [RStudio Community](https://community.rstudio.com/)'s
303+
#' For additional details regarding [Posit Community](https://forum.posit.co/)'s
303304
#' search interface please see the [Discourse](https://discourse.org) API documentation:
304305
#' \url{https://docs.discourse.org/#tag/Search}
305-
search_rstudio_community = searcher("rscom")
306+
search_posit_community = searcher("posit")
306307

307308
#' @rdname search_site
308309
#' @export
309-
search_rscom = search_rstudio_community
310+
search_posit = search_posit_community
310311

311312
#' @rdname search_site
312313
#' @export

README.Rmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ platforms are supported: [Google](https://www.google.com), [Bing](https://www.bi
6565
[DuckDuckGo](https://duckduckgo.com/), [Startpage](https://www.startpage.com/en/),
6666
Ecosia, [rseek](https://rseek.org/), Qwant, [Brave](https://search.brave.com/),
6767
Kagi, X (formerly Twitter), [StackOverflow](https://stackoverflow.com/),
68-
[RStudio Community](https://community.rstudio.com/search),
68+
[Posit Community](https://community.posit.co/search),
6969
[GitHub](https://github.com/search), [grep.app](https://grep.app/),
7070
and [BitBucket](https://bitbucket.org/product/).
7171
By default, an appropriate suffix for each platform that ensures relevant
@@ -92,9 +92,9 @@ search_twitter("machine learning", rlang = FALSE)
9292
search_stackoverflow("linear regression")
9393
search_stackoverflow("linear regression", rlang = FALSE) # or search_so(...)
9494

95-
# Searching RStudio Community for tips
96-
search_rstudio_community("tips")
97-
search_rstudio_community("tips", rlang = FALSE) # or search_rscom(...)
95+
# Searching Posit Community for tips
96+
search_posit_community("tips")
97+
search_posit_community("tips", rlang = FALSE) # or search_posit(...)
9898

9999
# Searching GitHub code for graphs in R and other languages
100100
search_grep("graph")
@@ -188,7 +188,7 @@ search_grep()
188188
search_duckduckgo() # or search_ddg()
189189
search_startpage() # or search_sp()
190190
search_stackoverflow() # or search_so()
191-
search_rstudio_community() # or search_rscom()
191+
search_posit_community() # or search_posit()
192192
search_github() # or search_gh()
193193
search_bitbucket() # or search_bb()
194194
```

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ repositories. The following search platforms are supported:
6060
[Startpage](https://www.startpage.com/en/), Ecosia,
6161
[rseek](https://rseek.org/), Qwant, [Brave](https://search.brave.com/),
6262
Kagi, X (formerly Twitter), [StackOverflow](https://stackoverflow.com/),
63-
[RStudio Community](https://community.rstudio.com/search),
63+
[Posit Community](https://community.posit.co/search),
6464
[GitHub](https://github.com/search), [grep.app](https://grep.app/), and
6565
[BitBucket](https://bitbucket.org/product/). By default, an appropriate
6666
suffix for each platform that ensures relevant results to *R* is
@@ -87,9 +87,9 @@ search_twitter("machine learning", rlang = FALSE)
8787
search_stackoverflow("linear regression")
8888
search_stackoverflow("linear regression", rlang = FALSE) # or search_so(...)
8989

90-
# Searching RStudio Community for tips
91-
search_rstudio_community("tips")
92-
search_rstudio_community("tips", rlang = FALSE) # or search_rscom(...)
90+
# Searching Posit Community for tips
91+
search_posit_community("tips")
92+
search_posit_community("tips", rlang = FALSE) # or search_posit(...)
9393

9494
# Searching GitHub code for graphs in R and other languages
9595
search_grep("graph")
@@ -186,7 +186,7 @@ search_grep()
186186
search_duckduckgo() # or search_ddg()
187187
search_startpage() # or search_sp()
188188
search_stackoverflow() # or search_so()
189-
search_rstudio_community() # or search_rscom()
189+
search_posit_community() # or search_posit()
190190
search_github() # or search_gh()
191191
search_bitbucket() # or search_bb()
192192
```

man/search_site.Rd

Lines changed: 16 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/searcher.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-search-functions.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,16 @@ test_that("Check link generation - kagi", {
111111

112112
})
113113

114-
test_that("Check link generation - RStudio Community", {
114+
test_that("Check link generation - Posit Community", {
115115

116116
expect_identical(
117-
search_rscom("toad"),
118-
"https://community.rstudio.com/search?q=toad"
117+
search_posit("toad"),
118+
"https://community.posit.co/search?q=toad"
119119
)
120120

121121
expect_identical(
122-
search_rscom("toad", rlang = FALSE),
123-
"https://community.rstudio.com/search?q=toad"
122+
search_posit("toad", rlang = FALSE),
123+
"https://community.posit.co/search?q=toad"
124124
)
125125

126126
})
@@ -219,8 +219,8 @@ test_that("Validate selection short name - search_site", {
219219
)
220220

221221
expect_identical(
222-
search_site("toad", "rscom", rlang = FALSE),
223-
"https://community.rstudio.com/search?q=toad"
222+
search_site("toad", "posit", rlang = FALSE),
223+
"https://community.posit.co/search?q=toad"
224224
)
225225

226226
expect_identical(
@@ -288,7 +288,7 @@ test_that("Malformed search query validation", {
288288

289289

290290
expect_identical(
291-
search_rscom(""),
291+
search_posit(""),
292292
"",
293293
"Empty string check if no error messages"
294294
)

vignettes/search-patterns.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ _R_-specific results. If `rlang = FALSE`, then the results are generalized.
6565
- Community Sites
6666
- [StackOverflow](https://stackoverflow.com/): ` <query> + [r]`
6767
- Twitter: `<query> + #rstats`
68-
- [RStudio Community](https://community.rstudio.com/search): `<query>`
68+
- [Posit Community](https://forum.posit.co/search) (formerly RStudio Community): `<query>`
6969
- [Rseek](https://rseek.org/): `<query>`
7070
- Code Repositories
7171
- [GitHub Search](https://github.com/search): `<query> language:r type:issue`

0 commit comments

Comments
 (0)