Make a Retweet Bot in R

R Twitter ecology_tweets

Y’know. If you wanna.

Mike Mahoney

A while back, I made a tweetbot that retweets a set of ecology-related hashtags, in order to signal boost ecology content in a similar manner to statsbot or Plotter Bot. The code to do this is pretty simple – made almost trivial by the rtweet package – but I found that environmental hashtags have a pretty low signal-to-noise ratio, driven down by various political and industry groups, as well as trolls.

I didn’t want to get into the business of content filtering, so instead I started looking for other markers that a tweet was – or wasn’t – worth promoting, and have gotten to what I believe is a respectable place with my filtration. So I’ve open-sourced the code (without the specific values I use to filter) for anyone else who might be interested in setting up their own automated retweet app.


If you see mistakes or want to suggest changes, please create an issue on the source repository.


For attribution, please cite this work as

Mahoney (2020, June 20). Mike Mahoney: Make a Retweet Bot in R. Retrieved from

BibTeX citation

  author = {Mahoney, Mike},
  title = {Mike Mahoney: Make a Retweet Bot in R},
  url = {},
  year = {2020}