if (!require("pacman")) install.packages("pacman", repos="http://cran.r-project.org")
Loading required package: pacman
::p_load(ggplot2, palmerpenguins) # Install & load packages pacman
Fill the title:
and name:
and affiliation:
fieds.
a couple of handy entries are already completed
the existing field: date: today
will automatically generate today’s date (cool huh? ͡▀̿ ̿ ͜ʖ ͡▀̿ ̿ )
Add a table of contents following the guide
Render the document
Give me a ✔️ when done or a ✋ if you need help
\(e=mc^2\)
\[ SD = \sqrt{\frac{\sum_{i=1}^{n}{(x_i - \bar{x})^2}}{n-1}} \]
Chamberlin (1897) Perkel (2022)
Check out Quarto’s markdown guide
In the template Introduction section take 3-4 minutes to write:
a sub-heading under the introduction
a list
and an equation (inline or as a block)
cite one of the articles in in existing .bib
file using the @
render the document and hit the ✔️ in zoom
Generally it is good practice to include a list of packages you use up front. But you may not need to show them in the output or list them in the table of contents. The {.unnumbered .unlisted}
commands following the heading remove this section from the table of contents but it will remain in the text. Quarto accepts multiple coding languages, the following example uses R. I have set up working R code chunks so that for this tutorial you do not need to be familiar with R. Here, we will experiment with a few code execution options.
If you want to use Python code check out the documentation here.
Check out the Block options and edit (and add to) the existing code block options below to:
exclude the results, messages and warnings
exclude the code from the HTML output (make sure it still evaluates!)
render the document and hit the ✔️ in zoom
if (!require("pacman")) install.packages("pacman", repos="http://cran.r-project.org")
Loading required package: pacman
::p_load(ggplot2, palmerpenguins) # Install & load packages pacman
data(penguins)
head(penguins)
# A tibble: 6 × 8
species island bill_length_mm bill_depth_mm flipper_length_mm body_mass_g
<fct> <fct> <dbl> <dbl> <int> <int>
1 Adelie Torgersen 39.1 18.7 181 3750
2 Adelie Torgersen 39.5 17.4 186 3800
3 Adelie Torgersen 40.3 18 195 3250
4 Adelie Torgersen NA NA NA NA
5 Adelie Torgersen 36.7 19.3 193 3450
6 Adelie Torgersen 39.3 20.6 190 3650
# ℹ 2 more variables: sex <fct>, year <int>
Check out the tabset panel documentation
Create a tabset with three tabs in the template under the Tabsets heading
render the document and hit the ✔️ in zoom
data(penguins)
head(penguins)
# A tibble: 6 × 8
species island bill_length_mm bill_depth_mm flipper_length_mm body_mass_g
<fct> <fct> <dbl> <dbl> <int> <int>
1 Adelie Torgersen 39.1 18.7 181 3750
2 Adelie Torgersen 39.5 17.4 186 3800
3 Adelie Torgersen 40.3 18 195 3250
4 Adelie Torgersen NA NA NA NA
5 Adelie Torgersen 36.7 19.3 193 3450
6 Adelie Torgersen 39.3 20.6 190 3650
# ℹ 2 more variables: sex <fct>, year <int>
There is a (royalty free) XKCD comic inside the images directory in the repo. Check out the guide, and insert the image into one of the tabsets you just created.
render the document and hit the ✔️ in zoom
You’re now ready to host your first live link!
Render your project so that most recent changes are exported
In the source control on the left commit and push your changes
Head over to GitHub in your browser and go:
By default, your link will be hosted at: https://githubusername.github.io/reponame/pathtodocument.html
Find your hosted template link and share with the world!
References are generated by default so include a final empty heading (delete this text) called References or Bibliography, or whatever is appropriate.