From 1e0e382eee3a2ed74246568810feb87103fd89b7 Mon Sep 17 00:00:00 2001 From: "Jennifer (Jenny) Bryan" Date: Fri, 30 Aug 2024 08:30:32 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Hadley Wickham --- vignettes/wrappers.Rmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vignettes/wrappers.Rmd b/vignettes/wrappers.Rmd index 8886335..1b75c6a 100644 --- a/vignettes/wrappers.Rmd +++ b/vignettes/wrappers.Rmd @@ -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(...) { @@ -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