taskStatus: A function to send a Twitter DM after completion of a task

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This function will run an R expression and send a direct message to a specified user on success or failure.

Usage

1
    taskStatus(expr, to, msg="")

Arguments

expr

An R expression that will be run

to

The user to send a message to, either character or an user object.

msg

An extra message to append to the standard DM

Details

This function will run expr, and send a Direct Message (DM) upon completion which will report the expression's success or failure.

Value

Either the value of the expression or an object of class try-error.

Author(s)

Jeff Gentry

See Also

dmSend

Examples

1
2
3
4
   ## Not run: 
       taskStatus(z<-5, "username", session=sess)
   
## End(Not run)

twitteR documentation built on May 2, 2019, 6:46 a.m.