I used rtweet to gather hashtagged posts from twitter. This is not part of my working day job but was related to volunteering so I could not use SAS in this context because of conflict of interest guidelines.
I used this documentation to help me:
- https://rtweet.info/
Here is something interesting from that documentation.
It is no longer necessary to obtain a developer account and create your own Twitter application to use Twitter’s API. You may still choose to do this (gives you more stability and permissions), but {rtweet} should work out of the box assuming (a) you are working in an interactive/live session of R and (b) you have installed the {httpuv} package.