knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Create a file ~/.slackr (file.create("~/.slackr"))

api_token: ... 
channel: #random
username: vincent
incoming_webhook_url:https://YOUR.slack.com/services/hooks/incoming-webhook?

Init slackr

library(slack)
slackr::slackr_setup()
create_slack_channel(name = "depuisr")
invite_user_to_channel(users = c("cervan.girard","sebastien","colin_","diane"),channel = "depuisr") 
set_channel_topic(topic = "yeeepieee",channel = "depuisr")


VincentGuyader/slack documentation built on May 18, 2019, 4:50 p.m.