Skip to content

Commit 929e546

Browse files
committed
forget it, making a screenshot is just too complicated...
1 parent 9f5359c commit 929e546

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

02-overview.Rmd

+6-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ Code chunks\index{code chunk} are the beating heart of our R Markdown. The code
106106

107107
To understand some of the modifications that we can make to code chunks, it is worth understanding the **knitr** process in slightly more detail. For each chunk, a **knitr** language engine gets three pieces of input: the knitting environment (`knitr::knit_global()`), the code input, and a list of chunk options. It returns the formatted representations of the code as well as its output. As a side effect, the knitting environment may also be modified, e.g., new variables may have been created in this environment via the source code in the code chunk. This process is illustrated in Figure \@ref(fig:knitr-workflow).
108108

109-
```{r knitr-workflow, echo = FALSE, fig.cap = 'A flowchart of inputs and outputs to a language engine.', fig.dim=c(7, 3.5), fig.align='center', cache=TRUE}
109+
```{r knitr-workflow, echo = FALSE, fig.cap = 'A flowchart of inputs and outputs to a language engine.', fig.align='center'}
110+
knitr::include_graphics('images/knitr-workflow.jpg', dpi = NA)
111+
```
112+
113+
<!--
110114
nomnoml::nomnoml(
111115
"
112116
[<frame>Code chunk|
@@ -117,7 +121,7 @@ nomnoml::nomnoml(
117121
[Language Engine]->[Formatted Output]
118122
[Language Engine]->[(Modified) Environment]
119123
]")
120-
```
124+
-->
121125

122126
We can modify this process by:
123127

images/knitr-workflow.jpg

32.2 KB
Loading

0 commit comments

Comments
 (0)