This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
warning("You probably don't want to use this `backstitch()` function.", | |
"\n It's hacky and there's a much better option in knitr called `purl()`.", | |
"\n More info at: `?knitr::purl`") | |
#' Backstitch an Rmd file to an R script | |
#' | |
#' Takes an Rmd file -- that would be converted with knitr::knit() -- and | |
#' "backstitches" it into an R script suitable for knitr::purl(). The output | |
#' file is the just the backstitched R script when `output_type = 'script'`, or | |
#' just the code chunks when `output_type = 'code'` (note that all inline code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Orig tweeps author: stephlocke | |
# Adapted to find data scientists in the Michigan, East Lansing area! | |
library(rtweet) #rtweet API creds should already be set up | |
library(stringi) | |
library(tidyverse) | |
friends = get_friends(user="gdequeiroz ") #stephlocke #JennyBryan #hadleywickham | |
followers = get_followers("gdequeiroz") #janani137 | |
tweeps_id = distinct(bind_rows(friends, followers)) |