search: query to use, same format as gmail search box.
num_results: the number of results to return.
label_ids: restrict search to given labels
include_spam_trash: boolean whether to include the spam and trash folders in the search
page_token: retrieve a specific page of results
user_id: gmail user_id to access, special value of 'me' indicates the authenticated user.
Examples
## Not run:# Search for R, return 10 results using label 1 including spam and trash foldersmy_messages <- gm_messages("R",10,"label_1",TRUE)## End(Not run)