These commands will return any authorized tweets which match the
search criteria. Note that there are pagination restrictions as well
as other limits on what can be searched, so it is always possible to
not retrieve as many tweets as was requested with the n
argument. Authorized tweets are public tweets as well as those
protected tweets that are available to the user after authenticating
via registerTwitterOAuth
. The searchString
is always required. Terms can contain spaces,
and multiple terms should be separated with "+".
For the geocode
argument, the values are given in the format
latitude,longitude,radius
, where the radius can have either
mi
(miles) or km
(kilometers) as a unit. For example
geocode='37.781157,-122.39720,1mi'
.
For the sinceID
argument, if the requested ID value is older
than the oldest available tweets, the API will return tweets starting
from the oldest ID available.
For the maxID
argument, tweets upto this ID value will be returned
starting from the oldest ID available. Useful for paging.
The resultType
argument specifies the type of search results received
in API response. Default is mixed
.
Allowed values are mixed
(includes popular + real time results),
recent
(returns the most recent results) and popular
(returns only the most popular results).
The Rtweets
function is a wrapper around searchTwitter
which hardcodes in a search for #rstats
.