Part of the course: “Version Control of Code & Data”
May 13, 2024
lennartwittkuhn.com/version-control-book/chapters/branches.html
💡 Learn the basics of the Markdown syntax
💡 Work on a new quarto
branch in your recipes
repo
💡 Create a neat recipe file using Quarto
💡 When you are done, merge the changes into your main
branch
Outlook: Your Quarto file can later be turned into a website!
You can use one of the following editors:
.qmd
file: “File” > “New file” > “Quarto Document”quarto
branch in your recipes
repository and switch to itrecipes.qmd
in RStudio and save it in your recipes
repositoryInput | Output |
---|---|
|
italics and bold |
|
superscript2 / subscript2 |
|
|
|
|
Input | Output |
---|---|
|
Header 1 |
|
Header 2 |
|
Header 3 |
|
Header 4 |
|
Header 5 |
|
Header 6 |
Input | Output |
---|---|
|
|
|
|
|
|
Input | Output | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
💡 Tip: Use a Markdown table generator
Markdown Syntax | Output |
---|---|
|
E=mc^{2} |
|
E = mc^{2} |
Input | Output |
---|---|
|
|
Input | Output |
---|---|
|
|
|
|
|
|
|
recipes.qmd
file (quickly copy-paste from the web)The YAML header of these slides:
When you are done and your Quarto file is rendering properly:
quarto
branch into your main branch```{r} code ```
@sec-citations
)Type | Label Prefix |
---|---|
Figures | fig- |
Tables | tbl- |
Equations | eq- |
Sections | sec- |
Code listing | lst- |
Theorem | thm- |
@
Markdown Format | Output (author-date format) |
---|---|
|
Blip blop bloop [see Chacon and Straub (2014), pp. 33-35; also , chap. 1] |
|
Blip blop bloop (Chacon and Straub 2014, 33–35, 38–39 and passim) |
|
Blip blop bloop (Chacon and Straub 2014). |
|
Lennart says blah (2014) |
|
Chacon and Straub (2014) says bloop. |
.qmd
files.qmd
files are plain text, ensuring compatibility with git diff
.qmd
filesrecipes
set up on your computerrecipes.qmd
file and (optionally) a .gitignore
filerecipes.qmd
file, share at least one recipe.If you’ve done this, you’re all set!
Introduction to Quarto
(the company formerly known as RStudio)