send_webhook_ggplot: Send Current ggplot via webhook

Description Usage Arguments Value See Also Examples

View source: R/send_functions.R

Description

Send images of GGplot which are currently shown in the plots pane of RStudio or elsewhere.

Usage

1
2
3
4
send_webhook_ggplot(
  conn = get_default_discord_connection(),
  filename = tempfile(pattern = "discordr", fileext = ".png")
)

Arguments

conn

Discord Connection Object containing Webhook and Username

filename

Optional - Filepath indicating where to save image; Provide to manually override the temporary directory and filename

Value

None

See Also

send_plot_code, send_file, send_message, send_console

Examples

1
2
3
4
## Not run: 
send_current_ggplot()

## End(Not run)

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