send_post: Send Post

Description Usage Arguments Examples

View source: R/send_post.R

Description

Send a message to a Slack channel using R and webhooks.

Usage

1
2
3
4
5
6
send_post(
  .letter = "Hello world!",
  .rider = NULL,
  .channel = NULL,
  .webhook = NULL
)

Arguments

.letter

a string, default: "Hello world!"; should be enclosed in quotes and contain the user's message

.rider

a string, default: NULL; should be enclosed in quotes. If left as NULL will fill in as Sys.info()[["user"]]

.channel

a string, default: NULL; should be enclosed in quotes and contain the name of a valid environment variable containing a channel webhook string the user/.rider has access to

.webhook

a string, default: NULL; recommend storing webhook as a user environment variable or some other secure manner and extracting as a character string to this argument

Examples

1
send_post(.letter = "foo", .channel = "bar")

mike-decarlo/stridr documentation built on March 20, 2020, 12:47 a.m.