SWWR 2023
Catalina Cañizares
Jan 13, 2023
“Reproducibility is a minimum requirement for a finding to be believable” (Goodman et al, 2016 )
Yet more than 70% of researchers have reported failure to reproduce another experiment.
Making our research more reproducible and shareable
RMarkdown is an open-source scientific and technical publishing system built on Pandoc
reproducible reports.Future you and anyone else can pick up your .rmd file and:
]
Quarto® is an open-source scientific and technical publishing system built on Pandoc
Quarto is a command line interface (CLI) that renders plain text formats (.qmd, .rmd, .md) OR mixed formats (.ipynb/Jupyter notebook) into:
Source Get Started with Quarto
Create an account or Log in
rUMCurrently our header is quite basic. It includes:
Source: Code Chunks
Make chunks like a pro
Name chunks like a pro with kebab-case
]
Now that we have a report with a header and some code, we need to explain what the code is doing and why.
This is where the plain text comes in.
Outside of a code chunk, type anything you want. You can even include pictures and tables.
]
Source Get Started with Quarto
Source Get Started with Quarto
Let’s go to the project we created
Modify the YAML with your information, and name your file
Check the YAML so we can see the code and the results.
Are there differences between the penguin species regarding their flipper lengths?
ggplot(
data = penguins,
aes(x = species, y = flipper_length_mm)) +
geom_boxplot(aes(color = species),
width = 0.3,
show.legend = FALSE) +
geom_jitter(aes(color = species),
alpha = 0.5,
show.legend = FALSE,
position = position_jitter(
width = 0.2, seed = 0)) +
scale_color_manual(values = c("darkorange", "purple", "cyan4")) +
labs(
x = "Species",
y = "Flipper length (mm)"
)Save your report and…
Inside your text you can include executable code with the syntax:
For example:
There are 344 rows in the penguins data set.
The truth:*
R Markdown: The Definitive Guide
Hello Quarto