Description Usage Arguments Details Value References Examples
Tweet the latest headlines from the specified website. rtweet and RCurl packages required.
1 |
posttweet |
A logical scalar indicating if tweets should be posted, default TRUE. |
username |
A character scalar, giving the name of the twitter user. The default, NULL, uses information stored in local .Renviron file. |
website |
A character scalar, giving the name of the website, from which to pull headlines. The default, NULL, uses information stored in local .Renviron file. |
This function is customized to work on a particular website. It's not for general use.
A list of length 3. The first element is a data frame of old tweets with text, favoriteCount, retweetCount, and createdUTC (date/time) as columns. The second and third elements are character strings of the current headlines (currentheads) and the latests items to tweet (totweet).
Simon Munzert. 19 Jan 2015. Programming a Twitter bot - and the rescue from procrastination. http://www.r-datacollection.com/blog/Programming-a-Twitter-bot/
Simon Munzert. 21 Dec 2014. How to conduct a tombola with R. www.r-datacollection.com/blog/How-to-conduct-a-tombola-with-R/
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.