-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/nmfs-opensci/Quarto-Worksho…
- Loading branch information
Showing
3 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
--- | ||
title: 'Dynamic output in Quarto files Code, Tables, and Figures' | ||
title: 'Dynamic output in Quarto files: Code, Tables, and Figures' | ||
--- | ||
|
||
::: {.callout-note title="Learning Objectives"} | ||
1. Coming Soon! | ||
1. Learn about rendering engines and how they work | ||
2. Understand the structure and format of a code chunk | ||
3. Learn how to insert dynamic variables into a Quarto document | ||
4. Create formatted tables and figures using Quarto code chunks | ||
::: | ||
|
||
## | ||
::: | ||
## Today's Carpentries Tutorials | ||
|
||
During these workshops, we will be using the Carpentries Incubator Reproducible Publications with RStudio set of tutorials from UCSB (<https://carpentries-incubator.github.io/reproducible-publications-quarto/>) for most of our content. While we will be walking everyone through the tutorials, it may be helpful for you to look through the tutorials prior to attending. This will give you a feel for what we will be covering during each session, and will highlight some areas where you may need some additional work or assistance. | ||
|
||
For this session, we will be covering the following topics: | ||
|
||
1. <https://carpentries-incubator.github.io/reproducible-publications-quarto/02-quarto/05-code-qmd/index.html> | ||
2. <https://carpentries-incubator.github.io/reproducible-publications-quarto/02-quarto/06-rendering-code-yaml/index.html> | ||
|
||
For this week's tutorials, we will be relying on the forked repository from the previous week. If you have not yet set up your forked repository in RStudio, follow the instructions here: <https://nmfs-opensci.github.io/Quarto-Workshop-2024/tutorials/tutorial-2.html#instructions-for-forking-the-carpentries-example-repository> | ||
|
||
## More practice with Code Chunks | ||
|
||
The Carpentries tutorials provide a good introduction to code chunks, but you may want some more practice. The [Quarto workshop](https://posit-conf-2024.github.io/quarto-intro/) from [posit::conf(2024)](https://posit.co/conference/) slide deck includes some extra examples for integrating dynamic code into Quarto documents: <https://posit-conf-2024.github.io/quarto-intro/materials/1-single-docs/1-welcome-to-quarto/slides.html#/code-cells> | ||
|
||
We will walk through some of the features discussed in this slide deck, but feel free to click through on your own for some additional practice. | ||
|
||
Code chunk options let you control the output of a code chunk in a YAML-like header at the beginning of the chunk. We will go over a few of these options in this week's sessions, but there are many more options available than what we will cover. Use [this reference guide](https://quarto.org/docs/reference/cells/cells-knitr.html) for the options available in an R code chunk. |