2024-03-05
I believe history will see RMarkdown as a turning point in the replication crisis.
Lack of reproducibility
is a problem
Quarto, Git & GitHub are
(part of) the solution
When was the last time you spent a pleasant evening in a comfortable chair, reading a good R Script?
– Adapted from John Bentley (1986) “Communications of the ACM”
content
I’ve stumbled across a method of composing programs that excites me very much.
Let us change our traditional attitude to the construction of programs:
Instead of imagining that our main task is to instruct a computer what to do, let us concentrate rather on explaining to human beings what we want a computer to do.
Make your R-Script literate
GOT.zip
from moodle (Game of Thrones Dataset)The quick brown fox jumps over the lazy dog.
Threema / WhatsApp:
**Hello World**
<b>Hello World</b>
\textbf{Hello World}
Check if quarto is installed by running the following command in your terminal:
install quarto if necessary (➲ quarto.org)
Create a new Quarto file
Save as got-2.qmd
Write some prose on the analysis done in got-1.R
(no R code yet)
Render the file to html by running the following code in your terminal
got-1.R
with Ctrl+Alt+igot-1.R
into the code blockquarto preview
)typst
(recommended) or pdf
pdf
, you might need to install tinytext
(see message in terminal)ggplot
-figurename
, screentime
and episodes
.knitr::kable()
Let’s add a citation!
bibliography.bib
bibliography: bibliography.bib
@knuth1984
for Knuth (1984)see [@knuth1984]
for see (Knuth 1984)You use Git to take snapshots of all the files in a folder.
This folder is called a repository or repo.
When you want to take a snapshot of a file or files, you create a commit
Want to learn Git?
→ Do the optional exercises on computationalmovementanalysis.github.io
(Week 3 → Exercise A and Exercise B)