powered by
slackr_dev sends the graphics contents of the current device to the specified Slack channel.
slackr_dev
slackr_dev( channels = Sys.getenv("SLACK_CHANNEL"), token = Sys.getenv("SLACK_TOKEN"), file = "plot", initial_comment = NULL, title = NULL, thread_ts = NULL )
httr response object from POST call
httr
POST
Comma-separated list of channel names or IDs where the file will be shared.
Authentication token bearing required scopes.
prefix for filenames (defaults to plot).
plot
The message text introducing the file in specified channels.
Title of file.
Provide another message's ts value to upload this file as a reply. Never use a reply's ts value; use its parent instead.
Konrad Karczewski (ctb), Bob Rudis (aut)
https://github.com/mrkaye97/slackr/pull/12/files
slackr_setup(), slackr_save(), slackr_upload()
slackr_setup()
slackr_save()
slackr_upload()
if (FALSE) { slackr_setup() # base library(maps) map("usa") slackr_dev("#results", file = "map") # base barplot(VADeaths) slackr_dev("@jayjacobs") }
Run the code above in your browser using DataLab