From 19204c2a17c82f2e522be29027d87fb19b471cc8 Mon Sep 17 00:00:00 2001 From: Tami Date: Thu, 15 Aug 2024 14:38:37 -0300 Subject: [PATCH] change the chunk style from curly brackets to hash pipe --- vignettes/regular-expressions.Rmd | 7 +++++-- vignettes/stringr.Rmd | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/vignettes/regular-expressions.Rmd b/vignettes/regular-expressions.Rmd index ccc0fb94..af15453d 100644 --- a/vignettes/regular-expressions.Rmd +++ b/vignettes/regular-expressions.Rmd @@ -7,7 +7,9 @@ vignette: > %\VignetteEncoding{UTF-8} --- -```{r setup, include = FALSE} +```{r} +#| label = "setup", +#| include = FALSE knitr::opts_chunk$set( collapse = TRUE, comment = "#>" @@ -19,7 +21,8 @@ Regular expressions are a concise and flexible tool for describing patterns in s Regular expressions are the default pattern engine in stringr. That means when you use a pattern matching function with a bare string, it's equivalent to wrapping it in a call to `regex()`: -```{r, eval = FALSE} +```{r} +#| eval = FALSE # The regular call: str_extract(fruit, "nana") # Is shorthand for diff --git a/vignettes/stringr.Rmd b/vignettes/stringr.Rmd index 5ecd53e1..d234ded3 100644 --- a/vignettes/stringr.Rmd +++ b/vignettes/stringr.Rmd @@ -7,7 +7,8 @@ vignette: > %\VignetteEncoding{UTF-8} --- -```{r, include = FALSE} +```{r} +#| include = FALSE library(stringr) knitr::opts_chunk$set( comment = "#>",