publicTimeline (twitteR package)

Retrieve the 20 most recent posts on Twitter.
  • – Arguments are passed to getURL in the RCurl package (getURL is similar to getURLContent).

Example. Twenty messages are retrieved from Twitter.
> library(twitteR)
Loading required package: RCurl
Loading required package: bitops
Loading required package: rjson
> pt <- publicTimeline()
> length(pt)
[1] 20
> pt[[1]]
[1] "Hademolar: Trying so hard to be successful"
> pt[[16]]
[1] "enmaricher: Y yo no se mi amor que hago pensandote,
si yo no me quiero enamorar #TRUE"
I’ll continue with more examples of the twitteR package throughout this week.

Leave a Reply