send_webhook_robject: Send R Objects

Description Usage Arguments Value Examples

View source: R/send_functions.R

Description

Send R Objects

Usage

1
2
3
4
5
send_webhook_robject(
  ...,
  filename = tempfile(pattern = "discordr", fileext = ".RData"),
  conn = get_default_discord_connection()
)

Arguments

...

Single or Multiple R Objects to be contained within a single RData file

filename

Default is a random string saved in the temporary directory; change this if you would like the RData file to be human-readable and in a different location.

conn

Discord Connection Object containing Webhook and Username

Value

None

Examples

1
2
3
4
5
6
## Not run: 
x <- c(1,2,3,4,5)
y <- matrix(rep(0, 4), rows = 2, cols = 2)
send_robject(x, y, filename = 'test_data.RData')

## End(Not run)

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