powered by
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).
slackr_save
channels
slackr_save( ..., channels = Sys.getenv("SLACK_CHANNEL"), file = "slackr", bot_user_oauth_token = Sys.getenv("SLACK_BOT_USER_OAUTH_TOKEN"), plot_text = "" )
objects to store in the R data file
Slack channels to save to (optional)
filename (without extension) to use
Slack bot user OAuth token
the plot text to send with the plot (defaults to "")
httr response object from POST call
httr
POST
slackr_setup(), slackr_dev(), slackr_upload()
slackr_setup()
slackr_dev()
slackr_upload()
# NOT RUN { slackr_setup() slackr_save(mtcars, channels = "#slackr", file = "mtcars") # }
Run the code above in your browser using DataLab