Skip to content
Create a Twitter bot that tweets about your unconf!
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
cron_scripts redo repo as an import instead of a fork Mar 10, 2019
downloads redo repo as an import instead of a fork Mar 10, 2019
utils redo repo as an import instead of a fork Mar 10, 2019
.gitignore redo repo as an import instead of a fork Mar 10, 2019
Rrobot.Rproj fix problem with wordcloud not showing up in PNG because of font reso… May 13, 2018
followers.txt move to home location on server Dec 23, 2015
retweets.log redo repo as an import instead of a fork Mar 10, 2019


Follow the steps below to create a Twitter bot that retweets tweets with your unconference's hashtag! Note: you will need access to a server that can run a job. These instructions work for Linux servers. For Windows, see this post.

Step 1: Create a Twitter account for your unconf

You'll need a phone number and an email to do this.

Step 2: Create a Twitter developer account for your unconf's Twitter account

You have to answer some questions about what you will be using your developer account for. Confirm with email before moving onto the next step.

Step 3: Create a Twitter app in your new developer account

Twitter apps

You'll have to answer more questions and agree to Twitter's policies.

Step 4: Clone this repo

This repo contains all the files necessary to Tweet from R! Thanks @ellisp! You'll need the following R packages:

install.packages(c("tweeteR", "stringi", "dplyr", "base64enc")))

Step 5: Put credentials in the credentials setup file

To find these credentials: Developer twitter -> "Details" button next to your app -> Keys and Tokens

(Optional) Step 5.5: Customize your retweets

Edit retweetRstats.R to change the comment that get posted with the retweet. (Currently emoji!)

Step 6: Set up the bot to run on a schedule. (This step is different for Windows.)

Set up a job on a server to run the shell scripts (scripts will also need to be changed if you're on Windows) in the cron-scripts folder. There is a different script for each Twitter task. For example, to run the retweet script every 5 minutes, put

*/5 * * * * ~/unconf-bot/cron_scripts/retweet

in the crontab file.

Credit to Rrobot

A twitterbot that tweets about #rstats

This is the source code for @HappyRrobot, an inoffensive Twitter bot that tweets a few times each day something about R. Typical tweets are retweets of popular recent posts using the #rstats hashtag, babble based on classic books about R, and text mining summaries from blogs about R.

Read my creators' blog post about when I was born.

You can’t perform that action at this time.