rOpenSci | Creating a self-updating GitHub README using rtweet and GitHub Actions
Reported on: Jul 21, 2020

Creating a self-updating GitHub README using rtweet and GitHub Actions

English • By Zhi Yang, PhD • Featuring: rtweet

rOpenSci package or resource used*

rtweet

What did you do?

After GitHub allows users to host their own README file on the profile page, people started to share many awesome README examples. Inspired by this tweet where Simon William used it to share his updates from blogs and commits, I created a README updating my latest tweet instead of having a static one by doing the following actions:

  1. Use rtweet to get my latest tweet.
  2. Use tweetrmd and webshot2 to turn the tweet into a screenshot. The entire process is deployed on GitHub using GitHub Actions templates from my friend Malcolm Barrett.

URL or code snippet for your use case*

https://github.com/zhiiiyang/zhiiiyang/blob/af2921e2fe01cd59cab9138907f8da37ceabcb1d/script.R

Image

image|597x500

Sector

academic

Field(s) of application

Doesn’t really fall into the typical fields. How about professional development?