Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Hadley Wickham <h.wickham@gmail.com>
  • Loading branch information
jennybc and hadley authored Aug 30, 2024
1 parent 2b0995d commit 1e0e382
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/wrappers.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ sw_meta <- list(

Define a custom glue wrapper and use it inside another helper that generates `\item` entries[^1]:

[^1]: We're using `<@` and `@>` as the delimiters because this vignette is authored using R Markdown and knitr. The delimiters `<<` and ``>>` actually have special meaning in knitr, so it was easiest to use something else.
[^1]: Note that delimiters `<<` and ``>>` have special meaning in knitr, so if you're generating output for RMarkdown or Quarto, you should avoid them.

```{r}
my_glue = function(...) {
Expand Down Expand Up @@ -113,7 +113,7 @@ glue(..., .envir = parent.frame(), ...)

The expressions inside a glue string are evaluated with respect to `.envir`, which defaults to the environment where `glue()` is called from.

Everything is simple when evaluating `glue()` in the global environment.
Everything is simple when evaluating `glue()` in the global environment:

```{r}
x <- 0
Expand Down

0 comments on commit 1e0e382

Please sign in to comment.