Shilaan Alzahawi @ Stanford Data Science Institute
Artwork by @allison_horst
Slides at bit.ly/shilaan-rmd
Artwork by @allison_horst
Icebreakers
🧊🔨 Week 2 of the DSSG!
Icebreakers
🧊🔨 Week 2 of the DSSG!
What?
📝 Dynamic and Reproducible Scientific Reports
Icebreakers
🧊🔨 Week 2 of the DSSG!
What?
📝 Dynamic and Reproducible Scientific Reports
Why?
✅ Benefits
Icebreakers
🧊🔨 Week 2 of the DSSG!
What?
📝 Dynamic and Reproducible Scientific Reports
Why?
✅ Benefits
How?
🛠 Tutorial
Choose one of the following questions to share with your breakout partner:
Choose one of the following questions to share with your breakout partner:
🌍️ What is the craziest small-world experience you've had?
Choose one of the following questions to share with your breakout partner:
🌍️ What is the craziest small-world experience you've had?
🦹🏾️ What would your superpower be and why?
Choose one of the following questions to share with your breakout partner:
🌍️ What is the craziest small-world experience you've had?
🦹🏾️ What would your superpower be and why?
😳 What's your guilty pleasure?
Choose one of the following questions to share with your breakout partner:
🌍️ What is the craziest small-world experience you've had?
🦹🏾️ What would your superpower be and why?
😳 What's your guilty pleasure?
😭 What movie/show/scene/song always makes you cry?
Choose one of the following questions to share with your breakout partner:
🌍️ What is the craziest small-world experience you've had?
🦹🏾️ What would your superpower be and why?
😳 What's your guilty pleasure?
😭 What movie/show/scene/song always makes you cry?
🙈 What was your most embarrassing childhood fashion trend?
Choose one of the following questions to share with your breakout partner:
🌍️ What is the craziest small-world experience you've had?
🦹🏾️ What would your superpower be and why?
😳 What's your guilty pleasure?
😭 What movie/show/scene/song always makes you cry?
🙈 What was your most embarrassing childhood fashion trend?
After sharing your answers with each other,
... you'll come back and tell us what your partner told you!
When writing a scientific report, the typical workflow is to ...
When writing a scientific report, the typical workflow is to ...
R
or Python
)When writing a scientific report, the typical workflow is to ...
Do your analyses (e.g., in R
or Python
)
Copy-paste or otherwise save your graphs and results
When writing a scientific report, the typical workflow is to ...
Do your analyses (e.g., in R
or Python
)
Copy-paste or otherwise save your graphs and results
Open a program (e.g., Microsoft Word
) to communicate the results
When writing a scientific report, the typical workflow is to ...
Do your analyses (e.g., in R
or Python
)
Copy-paste or otherwise save your graphs and results
Open a program (e.g., Microsoft Word
) to communicate the results
Manually format your results and citations
When writing a scientific report, the typical workflow is to ...
Do your analyses (e.g., in R
or Python
)
Copy-paste or otherwise save your graphs and results
Open a program (e.g., Microsoft Word
) to communicate the results
Manually format your results and citations
When writing a scientific report, the typical workflow is to ...
Do your analyses (e.g., in R
or Python
)
Copy-paste or otherwise save your graphs and results
Open a program (e.g., Microsoft Word
) to communicate the results
Manually format your results and citations
What are common challenges when working in this fashion?
What kind of problems could arise?
This is inefficient; it makes updating and maintaining the outputs difficult (when the data changes, steps 1 to 3 will have to be done again) and there is an overhead involved in jumping between incompatible computing environments.
Time-consuming
Error-prone (e.g., rounding or transcription errors)
Time-consuming
Error-prone (e.g., rounding or transcription errors)
Lacks transparency; difficult to reproduce (by others and yourself!)
Time-consuming
Error-prone (e.g., rounding or transcription errors)
Lacks transparency; difficult to reproduce (by others and yourself!)
Difficult to maintain and update (endless rewriting and reformatting...)
Time-consuming
Error-prone (e.g., rounding or transcription errors)
Lacks transparency; difficult to reproduce (by others and yourself!)
Difficult to maintain and update (endless rewriting and reformatting...)
Overhead costs of different computing/software environments
Time-consuming
Error-prone (e.g., rounding or transcription errors)
Lacks transparency; difficult to reproduce (by others and yourself!)
Difficult to maintain and update (endless rewriting and reformatting...)
Overhead costs of different computing/software environments
Anything else...?
Fuse your code and writing
Directly embed results in your report
Fuse your code and writing
Directly embed results in your report
Automatically reflect analytic changes in your documentation
Fuse your code and writing
Directly embed results in your report
Automatically reflect analytic changes in your documentation
Update all your results, figures, and tables automatically
Fuse your code and writing
Directly embed results in your report
Automatically reflect analytic changes in your documentation
Update all your results, figures, and tables automatically
Automatic formatting (including citations!)
Less...
Less...
⬇️ Error-prone
Less...
⬇️ Error-prone
⬇️ Time-consuming
Less...
⬇️ Error-prone
⬇️ Time-consuming
More...