dev.slackr
sends the graphics contents of the current device to the
specified Slack channel.
dev_slackr(
channels = Sys.getenv("SLACK_CHANNEL"),
bot_user_oauth_token = Sys.getenv("SLACK_BOT_USER_OAUTH_TOKEN"),
file = "plot"
)dev.slackr(
channels = Sys.getenv("SLACK_CHANNEL"),
bot_user_oauth_token = Sys.getenv("SLACK_BOT_USER_OAUTH_TOKEN"),
file = "plot"
)
list of channels to post image to
the Slack full bot user OAuth token (chr)
prefix for filenames (defaults to plot
)
httr
response object from POST
call
# NOT RUN {
slackr_setup()
# base
library(maps)
map("usa")
dev_slackr("#results", file='map')
# base
barplot(VADeaths)
dev_slackr("@jayjacobs")
# }
Run the code above in your browser using DataLab