Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seabbs/tweetrstudiocheatsheets
A Twitter bots which tweets a randomly selected Rstudio cheatsheet each day
https://github.com/seabbs/tweetrstudiocheatsheets
bot docker rstats twitter
Last synced: 7 days ago
JSON representation
A Twitter bots which tweets a randomly selected Rstudio cheatsheet each day
- Host: GitHub
- URL: https://github.com/seabbs/tweetrstudiocheatsheets
- Owner: seabbs
- License: gpl-3.0
- Created: 2018-04-21T10:10:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-17T20:22:02.000Z (about 1 year ago)
- Last Synced: 2024-12-24T03:28:09.938Z (15 days ago)
- Topics: bot, docker, rstats, twitter
- Language: Python
- Homepage: https://twitter.com/daily_r_sheets
- Size: 28.9 MB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Tweet Rstudio Cheatsheets
==========A [twitter bot](https://twitter.com/https://twitter.com/daily_r_sheets) that posts a random #rstats cheatsheet each day. Sourced from Rstudio - no affiliation. Developed by [seabbs](https://github.com/seabbs)
Set-up
------This bot has been set-up to run as a self contained [docker](https://www.docker.com) container using the following process,
1. Clone the repository
```bash
git clone https://github.com/seabbs/TweetRstudioCheatsheets.git
```1. Authorise the bot by setting up a twitter token. Instructions for this can be found [here](https://cran.r-project.org/web/packages/rtweet/vignettes/auth.html). Add the saved token (as `twitter_token.rds`) to the `TweetRstudioCheatsheets` repository.
1. Navigate to the `TweetRstudioCheatsheets` and build the docker container.
```bash
docker build . -t daily_r_cheatsheets
```1. Run the docker container.
```bash
docker run -d --name daily_r_cheatsheets daily_r_cheatsheets
```1. Check the logs to see if everything is working as expected. A cheatsheet should be posted, followed by a CRON job being set to repeat this daily.
```bash
docker logs -f daily_r_cheatsheets
```