type
status
date
slug
summary
tags
category
icon
password
😀
Introduction: Guess what? In one of my recent publications, I decided to shake things up and write the entire 33-page-long supplementary materials in RMarkdown. How cool is that? (Check below 😎 ⬇️)
notion image
 
When it comes to preparing a manuscript, the supplementary materials can be a real headache. Not only do you have to spend ages copying and pasting tables and figures into a word file, but it's also ridiculously easy to make mistakes along the way.
 
Here is my solution to make supplementary materials less of a nightmare.
 
 

📚 Examples

RMarkdown can pretty much create all the outputs required in a standard academic paper. For example:
  • References
notion image
  • Figures
notion image
  • Tables
notion image
  • Tables with special arrangements (merged cells, highlights, etc)
notion image
  • Code
notion image

👩🏻‍💻 My code

I also wrote a manual (download from here 🔗). This guidance was also written in RMarkdown and then rendered into a Word file.
 
Everything else mentioned in the manual can be found here:

🤗 Wrapping it up

In conclusion, writing supplementary materials doesn't have to be a never-ending nightmare. By using RMarkdown, you can streamline the process, save time, and minimize the risk of pesky mistakes. Plus, you'll feel like a coding wizard in the process! What's not to love? 😉

📎 References

 
💡 These materials were used in a session I gave at the UoE Psychiatry Department Coding Club.
 
 
PheWAS of polygenic risk score for Major DepressionAbout me