Using Slackr

@bill_felix
06/10/2016

Welcome

Join the Slack Team to share your opinions and expertise on all things R! This is a local group and serves as a supplement to the popular CinDay-RUG Meetup organized by Jim Holtman, Jermey Christman & Joel Chaney.

+ + = Collaboration

Slack Setup

Slack has an API that allows incoming-webhooks to deliver R Objects/Outputs directly into Slack Channels. To access these features each team member will need to:

R Setup

# install.packages("slackr") # from CRAN
library(slackr)
slackr_setup(config_file = ".learning")
  • slackr_setup initializes necessary environment variables
  • slackr sends stuff to Slack
  • ggslackr sends a ggplot object to a Slack channel
  • save_slackr save R objects to an RData file on Slack

Config File Setup

token: YOUR_SLACK_API_TOKEN
channel: #general
username: slackr
incoming_webhook_url: https://YOURTEAM.slack.com/services/hooks/incoming-webhook?

… in a basic file with a verifiable path for slackr_setup to find.

References