An easy way of determining when your job/script has finished, is to use twitter; at the end of your job, you send a tweet!
The package for accessing the twitter API is rtweet. This replaces the older twitteR client.
install.packages("rtweet")
In order to programmatically access twitter, you need to set up an app. This is described in great detail in the vignette
Next you create a token:
```r library(rtweet)
appname <- "rtweet_token"
key <- "XYznzPFOFZR2a39FwWKN1Jp41"
secret <- "CtkGEWmSevZqJuKl6HHrBxbCybxI1xGLqrD5ynPd9jG0SoHZbD" twitter_token <- create_token( app = appname, consumer_key = key, consumer_secret = secret) ```
Once twitter_token
is part of your global environment, rtweet functions should find it. However, using this method, the token will not automatically load in future sessions (you'll need to create a token every time you start a new session).
```r
rt = search_tweets("#rstats", n = 1000, token = twitter_token)
post_follow("csgillespie") ```
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.