In R,
install.packages("devtools")
should be enough to install devtools, if there are errors - you may have to ask elsewhere for someone who know more R stuff.
After devtools is installed, you will be able to run
devtools::install_github("cjbarrie/academictwitteR")
to install the above package.
If all that fails, you can always try to use the smaller snippet: Get tweets from the Academic Research product track. · GitHub
Yes, to me it looks like they just named that function awkwardly so,
get_hashtag_tweets("(\"green eggs\" OR \"ham\") from:drseuss", "2020-01-01T00:00:00Z", "2020-01-05T00:00:00Z", bearer_token, data_path = "data/")
should work for searching for the phrase green eggs or ham from @drseuss account. To formulate these kinds of queries see Building queries | Twitter Developer and the " inside the query has to be escaped as \"
so the above, the twitter query is
("green eggs" OR "ham") from:drseuss
And to make it valid for R, it’s
"(\"green eggs\" OR \"ham\") from:drseuss"
That R code above will call the academic access endpoint, so your cap will be 10 million tweets per month.
Hope that helps!