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"), bot_user_oauth_token = Sys.getenv("SLACK_BOT_USER_OAUTH_TOKEN"), plot_text = "", file = "plot" )
list of channels to post image to
the Slack full bot user OAuth token (chr)
the plot text to send with the plot (defaults to "")
prefix for filenames (defaults to plot)
plot
httr response object from POST call
httr
POST
https://github.com/mrkaye97/slackr/pull/12/files
slackr_setup(), slackr_save(), slackr_upload()
slackr_setup()
slackr_save()
slackr_upload()
# NOT RUN { 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