Learn R Programming

twitteR (version 0.99.19)

timelines: Functions to view Twitter timelines

Description

These functions will allow you to retrieve various timelines within the Twitter universe

Usage

publicTimeline(...)
userTimeline(user, n=20, maxID=NULL, sinceID=NULL, ...)
homeTimeline(n=25, maxID=NULL, sinceID=NULL, ...)
mentions(n=25, maxID=NULL, sinceID=NULL, ...)
retweetedByMe(n=25, maxID=NULL, sinceID=NULL, ...)
retweetedToMe(n=25, maxID=NULL, sinceID=NULL, ...)
retweetsOfMe(n=25, maxID=NULL, sinceID=NULL, ...)

Arguments

user
The Twitter user to detail, can be character or an user object.
n
Number of tweets to retrieve, up to a maximum of 3200
maxID
Maximum ID to search for
sinceID
Minimum (not inclusive) ID to search for
...
Optional arguments to be passed to getURL

Value

Details

The publicTimeline function will return a current snapshot of the public timeline.

The userTimeline function will only work if the user requested has a public timeline, or you have previously registered a OAuth object using registerTwitterOAuth and are authorized to view that content.

The other functions will provide various views into timelines available to the user. They all require authentication via OAuth.

See Also

getUser, status, registerTwitterOAuth

Examples

Run this code
pt <- publicTimeline()
        pt
        ut <- userTimeline('barackobama', n=100)

Run the code above in your browser using DataLab