diff --git a/screenshots/stringr-autocomplete.png b/screenshots/stringr-autocomplete.png new file mode 100644 index 0000000..e3fd362 Binary files /dev/null and b/screenshots/stringr-autocomplete.png differ diff --git a/strings.Rmd b/strings.Rmd index f44529d..969d224 100644 --- a/strings.Rmd +++ b/strings.Rmd @@ -67,7 +67,11 @@ Instead we'll use functions from stringr. These have more intuitive names, and a str_length(NA) ``` -The common `str_` prefix is particularly useful if you use RStudio, because typing `str_` will trigger autocomplete, allowing you to see all stringr functions. +The common `str_` prefix is particularly useful if you use RStudio, because typing `str_` will trigger autocomplete, allowing you to see all stringr functions: + +```{r} +bookdown::embed_png("screenshots/stringr-autocomplete.png", dpi = 220) +``` ### Combining strings