Skip to content

Instantly share code, notes, and snippets.

View isiemen's full-sized avatar

Irene Siemen isiemen

  • Greenville, South Carolina
View GitHub Profile
@ritchieking
ritchieking / fetchGHdata.R
Created June 6, 2018 23:48
Fetch a data file directly from a private GitHub repo in R
# Download any data file from a private GitHub repo
# regardless of how large it is.
# Returns a string that will then need to be parsed
# by read_csv or the like to turn it into a data frame.
# Dependencies
require(tidyverse)
require(httr)
require(rlist)
require(jsonlite)