Learn R Programming

slackr (version 1.4.2)

save_slackr: Save R objects to an RData file on Slack

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

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

See Also

slackr_setup, dev_slackr, slackr_upload

Examples

Run this code
# NOT RUN {
slackr_setup()
save_slackr(mtcars, channels="#slackr", file="mtcars")
# }

Run the code above in your browser using DataLab