-
Notifications
You must be signed in to change notification settings - Fork 1
/
04_search.Rmd
81 lines (58 loc) · 1.69 KB
/
04_search.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
73
74
75
76
77
78
79
80
81
---
title: "Search"
subtitle: "Part 4 of the RStudio Tips and Tricks Series"
author: "Jeremy Allen"
date: "Nov 2, 2021, updated on `r Sys.Date()`"
output:
html_document:
highlight: zenburn
theme:
bg: "#303436"
fg: "#9da9af"
primary: "#ff8080"
base_font:
google: "Roboto"
code_font:
google: "JetBrains Mono"
editor_options:
chunk_output_type: console
self_contained: true
---
---
<br>
<br>
```{r packages, echo=TRUE, message=FALSE, warning=FALSE}
library(palmerpenguins)
library(tidyverse)
library(janitor)
library(here)
```
# Review
- shift+cmd+p for command palette
- fun/if/for/lib/ec then shift+tab to add snippets
- cmd+click a function to inspect it, recursively
### cmd+click on the library function above
moving on...
# Search
## Search tabs
`r emo::ji("smile")` Pro tip: ctl+. to search file tabs
![](images/tabs.gif)
## Find in Files
`r emo::ji("smile")` Pro tip: shift+cmd+f to search across many file, also under Edit menu
- common R files
- exclude \*.html
![](images/find_in.gif)
## Now you - Replace with "clean_my_bad_names"
![](images/replace.gif)
# `r emo::ji("smile")` Google Programmable Search Engine
[Google Programmable Search Engine](https://programmablesearchengine.google.com/about/)
I've already made this one <https://cse.google.com/cse?cx=e1ab735d551d64cb1> that searches just the following RStudio sites:
- <https://blog.rstudio.com/>
- <https://education.rstudio.com/blog/>
- <https://blogs.rstudio.com/ai/>
- <https://www.tidyverse.org/blog/>
- <https://support.rstudio.com/hc/en-us/>
- <https://solutions.rstudio.com/>
- <https://docs.rstudio.com/>
![](images/gps1.png)\
![](images/gps2.png)