Code Monkey home page Code Monkey logo

rsconf_tweets's Introduction

rstudio::conf_tweets()

A quick fix for your rstudio::conf FOMO. Try it on shinyapps.io or run it yourself!

Run this on your own machine

UPDATE 2018-02-09: RStudio::conf 2018 is now over! This repo now includes the tweets I gathered during the conference, so you do not need to worry about authenticating with Twitter. You can run the app locally with a simple shiny::runGitHub("rsconf_tweets", "gadenbuie")

To run this on your own, you need to create an OAuth twitter token for rtweet. I followed Bob Rudis's (hrbrmstr) excellent guide from 21 Recipes for Mining Twitter with rtweet.

To have this app recognize your twitter PAT, you have a couple options:

  1. You can follow all of the steps in Using OAuth to Access Twitter APIs,

  2. You can save your twitter_token to rtweet.rds in the app directory

  3. You can code up another alternative by setting .TWITTER_PAT in a file called twitter_secrets.R.

(The first one is the best answer.)

Required packages

I used the following packages to make this, all of which can all be installed from CRAN:

packages = c("shiny", "rtweet", "dplyr", "stringr",
             "purrr", "httr", "DT", "shinythemes", 
             "glue", "simpleCache")
install.packages(packages)

How it works

I used a simple twitter search for anything tagged or related to rstudioconf. Ininitally I was just looking at anything tagged #rstudioconf, but I borrowed the search terms from Michael Kearney.

rstudioconf <- c("rstudioconf", "rstudio::conf",
  "rstudioconference", "rstudioconference18",
  "rstudioconference2018", "rstudio18",
  "rstudioconf18", "rstudioconf2018",
  "rstudio::conf18", "rstudio::conf2018")

The app is set to pull in new tweets if the app was last loaded more than 15 minutes ago. To get new tweets, just reload!

Check out init.r for more details.

Other rstudio::conf twitter fun

@kearneymw posted a script that collects tweets and makes awesome plots at https://github.com/mkearney/rstudioconf_tweets

rsconf_tweets's People

Contributors

gadenbuie avatar jonmcalder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rsconf_tweets's Issues

Meaning of file.info times is OS and file system dependent

Taken from the help for file.info():

On Windows native file systems ctime is the file creation time (something which is not recorded on most Unix-alike file systems).

Since init.R relies on ctime to determine how recently the file cache was updated, the result is that on Windows, each time init.R is sourced, all tweets are re-fetched regardless of recent modifications to data/rsconf_tweets.rds.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.