Skip to content

Commit ed5b93e

Browse files
committed
take another screenshot manually
1 parent 929e546 commit ed5b93e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

02-overview.Rmd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,11 @@ print(y)
171171
172172
When writing this document, we might think of each piece as linear with independent sections of text and code following in a sequence one after the other. However, what we are actually doing is creating a set of nested containers that conceptually^[In reality, there are many more containers than shown. For example, for a knitted code chunk, the code and output exist in separate containers that share a common parent.] looks more like Figure \@ref(fig:rmd-containers).
173173
174-
```{r rmd-containers, echo = FALSE, fig.cap = 'A simple R Markdown document illustrated as a set of nested containers.', out.width = '50%', fig.align='center', cache=TRUE}
174+
```{r rmd-containers, echo = FALSE, fig.cap = 'A simple R Markdown document illustrated as a set of nested containers.', out.width = '50%', fig.align='center'}
175+
knitr::include_graphics('images/rmd-containers.jpg', dpi = NA)
176+
```
177+
178+
<!--
175179
nomnoml::nomnoml(
176180
"
177181
[Title (Level 1)|
@@ -180,7 +184,7 @@ nomnoml::nomnoml(
180184
[Section Y (Level 2)| - Text | - Code (chunk-y) ]
181185
182186
]")
183-
```
187+
-->
184188

185189
Two key features of this diagram are (1) every section of text or code is its own discrete container, and (2) containers can be nested within one another. This nesting is particularly apparent if you are authoring your R Markdown document in the RStudio IDE and expand the document outline.
186190

images/rmd-containers.jpg

27.6 KB
Loading

0 commit comments

Comments
 (0)