2024-02-29
What is reproducibility?
Why should you care?
Specific role of
Skills to learn today
Communication, trust, and error detection
Clear documentation of all steps and tools used
Ease of reproducing the work
Consider the consequences of small changes to
Consider the consequences of a change in team membership
Helps “future you”
Lets you make changes, update data, fix errors easily
Improves communication
Increases value of your work
Combines
explanation
R code
results
a final report
Easy to detect if a report is complete (Does it knit?)
Allows you to make versions, track changes in code, data, and report
Makes it easy to share with others
Facilitates team work
Always check that your document knits
Don’t use absolute paths to files on your computer (/Users/airwin/Documents/xxx
)
here
insteadCarefully format text in R markdown reports
#
*
or -
*
, **
around wordsControl output from R with “chunk options”
Adapted from Sandve et al. 10.1371/journal.pcbi.1003285
The course notes are quite different from these slides. They emphasize practical skills and tips.
The course notes contain specific suggestions for using R markdown which will be explored in the task for this lesson.