Learn R Programming

slackr (version 2.3.0)

slackr_save: Save R objects to an RData file on Slack

Description

slackr_save 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

slackr_save(
  ...,
  channels = Sys.getenv("SLACK_CHANNEL"),
  file = "slackr",
  bot_user_oauth_token = Sys.getenv("SLACK_BOT_USER_OAUTH_TOKEN"),
  plot_text = ""
)

Arguments

...

objects to store in the R data file

channels

Slack channels to save to (optional)

file

filename (without extension) to use

bot_user_oauth_token

Slack bot user OAuth token

plot_text

the plot text to send with the plot (defaults to "")

Value

httr response object from POST call

See Also

slackr_setup(), slackr_dev(), slackr_upload()

Examples

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

Run the code above in your browser using DataLab