The package twitteRacademic is intended for academics who have an academic account on Twitter. This package enables the integration of the Academic Research product track of Twitter, which provides free access to the full-archive search and other v2 endpoints. It provides a feature for circumstantial use of the full-archive search call, which is used to access the historical API. For suggestions, questions, ideas, improvements or reporting bugs, please contact the authors of the package.
More information on twitteRacademic is available on the project homepage.
To be able to use the package in principle, some requirements are to be fulfilled, which are only mentioned here. For an implementation of these please visit the homepages of the infrastructure used here. What you need to have basically set up to use the twitteRacademic package:
For a detailed description of each step to implement an app in Twitter, please visit the pages of the links provided above.
The current/last version of the package can be obtained from the corresponding repository. To install the package directly from GitHub, you can use install_github() from the devtools package:
library(remotes)
install_github("mittendo/twitteRacademic")
```{r eval=FALSE}
library(twitteRacademic)
bearer_token <- "Put Your Bearer-Token in here"
twitterBearerToken <- "Put Your Bearer Token in here".# in .Rprofile = twitterBearerToken bearer_token <- twitterBearerToken
```{r eval=FALSE, echo = TRUE}
# query the term
# Please check out the different options that Twitter provides for "high-performance"
# research/queries.
query <- '#OCCUPYWALLSTREET lang:de'
Some sample code has been taken from twitter development team (https://github.com/twitterdev/Twitter-API-v2-sample-code/blob/master/Full-Archive-Search/full-archive-search.r).
We welcome pull requests and any meaningful additions to this package.
For suggestions, questions, ideas, improvements or reporting bugs, please contact the authors of the package [mittendo@uni-wuppertal.de; schmale@uni-wuppertal.de].
Please report any bugs to:
https://github.com/mittendo/twitteRacademic/issues
Please cite this package, if you have used it in your works:
citation("twitteRacademic")
GPL-3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.