## install devtools package if it's not already if (!"devtools" %in% installed.packages()) { install.packages("devtools") } ## install dev version of rtweet from github devtools::install_github("mkearney/rtweet") ## load rtweet package library(rtweet)