jobNotify: notifies job status

Description Usage Arguments Details

Description

sends tweets to users about the job status

Usage

1
2
jobNotify(jobRun = function() { }, jobID, userID = "", addNow = TRUE,
  testTweet = FALSE)

Arguments

jobRun

the function call to evaluate (default is empty function)

jobID

text string to associate with job call

userID

the users to notify as a character vector. See Details for more information.

addNow

add current date-time to tweet text

testTweet

if TRUE, print the tweets instead of actually tweeting them

Details

To send the same tweet to multiple users separately, pass in a character vector of userIDs, in the form of c("userID1", "userID2"). A single tweet to multiple users can be done instead by supplying a userID of the form ("userID1 userID2"). Note that the jobID will be truncated to make the text fit into Twitter's 140 character limit. Also, setting addNow = FALSE is generally a bad idea because the time at second resolution makes the tweet text unique, which in turn will keep Twitter from blocking the tweets.


rmflight/tweetJobStatus documentation built on May 27, 2019, 9:32 a.m.