send_webhook_console: Send Console Output via Webhook

Description Usage Arguments Value See Also Examples

View source: R/send_functions.R

Description

This functions accepts an expression whose console output you would like to send to the specified discord channel

Usage

1
2
3
4
5
6
send_webhook_console(
  ...,
  conn = get_default_discord_connection(),
  filename = tempfile(pattern = "discordr"),
  tibble_formatting = FALSE
)

Arguments

...

A single or set of expressions to be evaluated for console output

conn

Discord Connection Object containing Webhook and Username

filename

Alternative path to route console output; defaults to tempfile

tibble_formatting

By Default this is set to False, Use this option to format linebreaks specifically on newlines for large tibbles

Value

None

See Also

send_message, send_file, send_plot_code, send_current_ggplot

Examples

1
2
3
4
## Not run: 
send_webhook_console(2 + 2)

## End(Not run)

jljsio/discordr documentation built on Dec. 21, 2021, 1:08 a.m.