Description Usage Arguments Details Value Examples
Post sessioninfo to Slack as a snippet
1 2 3 4 5 6 7 | post_sessioninfo(
channel,
ts = NULL,
initial_comment = NULL,
...,
token = Sys.getenv("SLACK_API_TOKEN")
)
|
channel |
character, channel to post to |
ts |
character, Slack API time stamp, Default: NULL |
initial_comment |
character, comment that precedes the snippet, Default: NULL |
... |
arguments passed to sessioninfo::session_info() if installed else passed to sessionInfo() |
token |
Slack API token, Default: Sys.getenv("SLACK_API_TOKEN") |
channel
can be on of the following in an activated team
name of channel
channel id
link to a message in a channel, direct message or a group message
A pairing of channel
and ts
can be used instead of a link to post to a thread.
response from Slack api
1 2 3 4 5 6 7 8 | ## Not run:
if(interactive()){
post_sessioninfo(channel = 'slackbot')
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.