save_slackr: Save R objects to an RData file on Slack

Description Usage Arguments Value Note See Also Examples

Description

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).

Usage

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"))

Arguments

...

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

Value

httr response object from POST call

Note

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)

See Also

slackr_setup, dev_slackr, slackr_upload

Examples

1
2
3
4
5
## Not run: 
slackr_setup()
save_slackr(mtcars, channels="#slackr", file="mtcars")

## End(Not run)

tmooney101/slacktest003 documentation built on May 31, 2019, 4:39 p.m.