Description Usage Arguments Value See Also Examples
View source: R/send_functions.R
Runs and saves the plot code provided. In order to save and send the file, a random name for the image will be generated and saved temporarily.
1 2 3 4 5 | send_webhook_plot_code(
...,
conn = get_default_discord_connection(),
filename = tempfile(pattern = "discordr", fileext = ".png")
)
|
... |
Plot code to run and save |
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 |
None
send_webhook_ggplot
, send_webhook_file
, send_webhook_message
, send_webhook_console
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.