Description Usage Arguments Value Note Author(s) References See Also Examples
dev.slackr
sends the graphics contents of the current device to the
specified Slack channel.
1 2 3 4 5 | 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")
|
channels |
list of channels to post image to |
... |
other arguments passed into png device |
api_token |
the slack.com full API token (chr) |
file |
prefix for filenames (defaults to |
httr
response object from POST
call
You can pass in add_user=TRUE
as part of the ...
parameters and the Slack API
will post the message as your logged-in user account (this will override anything set in
username
)
Konrad Karczewski [ctb], Bob Rudis [aut]
https://github.com/hrbrmstr/slackr/pull/12/files
slackrSetup
, save.slackr
, slackrUpload
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
slackr_setup()
# base
library(maps)
map("usa")
dev_slackr("#results", filename='map')
# base
barplot(VADeaths)
dev_slackr("@jayjacobs")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.