Description Usage Arguments Value Note See Also Examples
save_slackr
enables you upload R objects (as an R data file)
to Slack and (optionally) post them to one or more channels
(if channels
is not empty).
1 2 3 4 5 | save_slackr(..., channels = "", file = "slackr",
api_token = Sys.getenv("SLACK_API_TOKEN"))
save.slackr(..., channels = "", file = "slackr",
api_token = Sys.getenv("SLACK_API_TOKEN"))
|
... |
objects to store in the R data file |
channels |
slack.com channels to save to (optional) |
file |
filename (without extension) to use |
api_token |
full API token |
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
)
slackr_setup
, dev_slackr
, slackr_upload
1 2 3 4 5 | ## Not run:
slackr_setup()
save_slackr(mtcars, channels="#slackr", file="mtcars")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.