powered by
dev.slackr sends the graphics contents of the current device to the specified Slack channel.
dev.slackr
dev_slackr(channels = Sys.getenv("SLACK_CHANNEL"), ..., api_token = Sys.getenv("SLACK_API_TOKEN"), file = "plot")dev.slackr(channels = Sys.getenv("SLACK_CHANNEL"), ..., api_token = Sys.getenv("SLACK_API_TOKEN"), file = "plot")
dev.slackr(channels = Sys.getenv("SLACK_CHANNEL"), ..., api_token = Sys.getenv("SLACK_API_TOKEN"), file = "plot")
list of channels to post image to
other arguments passed into png device
the slack.com full API token (chr)
prefix for filenames (defaults to plot)
plot
httr response object from POST call
httr
POST
https://github.com/hrbrmstr/slackr/pull/12/files
slackrSetup, save.slackr, slackrUpload
slackrSetup
save.slackr
slackrUpload
# 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