File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 4
4
html :
5
5
toc : true
6
6
toc-depth : 3
7
- keep-md : true
8
7
vignette : >
9
8
%\VignetteIndexEntry{Dynamic Metadata in Quarto Documents}
10
9
%\VignetteEngine{quarto::html}
@@ -106,25 +105,25 @@ email-preview: true
106
105
107
106
Pick variant
108
107
109
- ```{r }
108
+ ```{{r} }
110
109
variant <- sample(1:3, 1)
111
110
```
112
111
113
- ```{r }
112
+ ```{{r} }
114
113
#| echo: false
115
114
#| output: asis
116
115
quarto::write_yaml_metadata_block(.list = setNames(list(TRUE), sprintf("is_email_variant_%d", variant)))
117
116
```
118
117
119
118
::: {.email}
120
119
121
- This email was sent from Quarto! With conditional output for condition `r variant`
120
+ This email was sent from Quarto! With conditional output for condition `{{r}} variant`
122
121
123
122
::: {.content-visible when-meta="is_email_variant_1"}
124
123
125
124
email body 1
126
125
127
- ```{r }
126
+ ```{{r} }
128
127
head(mtcars)
129
128
```
130
129
@@ -138,7 +137,7 @@ subject 1
138
137
139
138
email body 2
140
139
141
- ```{r }
140
+ ```{{r} }
142
141
head(palmerpenguins::penguins)
143
142
```
144
143
@@ -152,7 +151,7 @@ subject 2
152
151
153
152
email body 3
154
153
155
- ```{r }
154
+ ```{{r} }
156
155
praise::praise()
157
156
```
158
157
170
169
171
170
## Logging
172
171
173
- Case: `r variant`
172
+ Case: `{{r}} variant`
174
173
175
- Report run: `r Sys.time()`
174
+ Report run: `{{r}} Sys.time()`
176
175
````
177
176
178
177
This example demonstrates several advanced concepts:
You can’t perform that action at this time.
0 commit comments