Connects to the API of < https://pushshift.io/> to search for 'Reddit' comments and submissions.

PSAWR is a Pushsift.io API Wrapper written in R
for comment/submission search for Reddit.
You can install the development version of PSAWR like so:
devtools::install_github("schochastics/PSAWR")
Get the last 100 comments mentioning dogs in the subreddit cats.
search_coments(q = "dogs", subreddit = "cats", size = 100)
Get the last 10 submissions mentioning cats in the subreddit dogs.
search_submissions(q="cats", subreddit = "dogs",size = 10)