knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
Create a file ~/.slackr
(file.create("~/.slackr")
)
token: ... channel: #random username: vincent incoming_webhook_url:https://YOUR.slack.com/services/hooks/incoming-webhook?
Init slackr
library(slack) slackr::slackr_setup() # Sys.setenv("SLACK_API_TOKEN"= 'xoxb-xxx')
create_slack_channel(channel = "bac_a_sable2010")
invite_users_to_channel(users = c("vincent","diane"), channel = "bac_a_sable2010")
set_channel_topic(channel = "bac_a_sable2010",topic = "yeeepieee")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.