Skip to content

Commit 05b153d

Browse files
batpigandmehadley
authored andcommitted
Add thumbnail of cheat sheet (#239)
* Add cheat sheet thumbnail * Add thumbnail to end of usage section. * Fixes #219
1 parent 44ed136 commit 05b153d

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

README.Rmd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ stringr is built on top of [stringi](https://github.com/gagolews/stringi), which
2929

3030
## Installation
3131

32-
```R
32+
```r
3333
# Install the released version from CRAN:
3434
install.packages("stringr")
3535

@@ -105,6 +105,10 @@ As well as regular expressions (the default), there are three other pattern matc
105105
* `coll()`: match human letters
106106
* `boundary()`: match boundaries
107107
108+
109+
<a href="https://github.com/rstudio/cheatsheets/blob/master/strings.pdf"><img src="man/figures/cheatsheet-thumb.png" align="right" dpi="600"/></a>
110+
111+
108112
## Compared to base R
109113
110114
R provides a solid set of string operations, but because they have grown organically over time, they can be inconsistent and a little hard to learn. Additionally, they lag behind the string operations in other programming languages, so that some things that are easy to do in languages like Ruby or Python are rather hard to do in R.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ pattern matching engines:
152152

153153
- `fixed()`: match exact bytes
154154
- `coll()`: match human letters
155-
- `boundary()`: match boundaries
155+
- `boundary()`: match
156+
boundaries
157+
158+
<a href="https://github.com/rstudio/cheatsheets/blob/master/strings.pdf"><img src="man/figures/cheatsheet-thumb.png" align="right" dpi="600"/></a>
156159

157160
## Compared to base R
158161

man/figures/cheatsheet-thumb.png

66.3 KB
Loading

man/figures/[email protected]

205 KB
Loading

0 commit comments

Comments
 (0)