Skip to content

Commit a97e584

Browse files
authored
Merge pull request #1115 from ethanwhite/quarto-fixup
Minor cleanup of quarto lecture
2 parents 2427df0 + e27db2c commit a97e584

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

materials/quarto.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,15 @@ In this document I will:
8383

8484
* Quarto allows you to include code to run in the document
8585
* Click on `+C` button, which stands for "add code"
86+
* Or in the visual editor type `/` and select `R Code Chunk`
8687

8788
<pre><code>
8889
## Required Packages
8990

9091
```{r}
9192
library(dplyr)
9293
library(ggplot2)
94+
library(gt)
9395
library(readr)
9496
```
9597
</code></pre>
@@ -148,8 +150,9 @@ ggplot(time_series, aes(x = year, y = count)) +
148150

149151
### Chunk options
150152

153+
* Each block of code is called a "chunk"
151154
* Chunks have lots of useful options
152-
* Can add them at the start of the chunk using `#| `, the option name, and then the option value
155+
* Can add them at the start of the chunk using `#| `, the option name, `:`, the option value
153156
* `#| echo: false` let's you show the results of the code chunk without showing the code.
154157
* ADD: `#| echo: false` to plot chunk
155158
* `#| message: false` will remove messages returned by R
@@ -191,8 +194,13 @@ time_series |>
191194

192195
* You can then reference the table in the text using `@tbl-total-count`
193196

197+
```r
198+
The population dynamics at the site varies by species (@tbl-total-count).
199+
```
200+
194201
### Citations
195202

203+
196204
* `Insert` -> `Citation` -> `From DOI` -> `10.1101/332783` -> `+` -> `Insert`
197205
* Creates a `bibliography.bib` file with the citations
198206
* This is called a bibtex file

0 commit comments

Comments
 (0)