slackr_csv
simplifies the process of sending a data frame to Slack as a CSV file.
It is highly recommended to leave the filename
argument as the default (tempfile), as changing it will persist a csv file in your working directory.
slackr_csv(
data,
filename = tempfile(fileext = ".csv"),
title = NULL,
initial_comment = NULL,
channels = Sys.getenv("SLACK_CHANNEL"),
token = Sys.getenv("SLACK_TOKEN"),
thread_ts = NULL,
...
)
httr
response object from POST
call (invisibly)
httr
response object from POST
call (invisibly)
the data frame or tibble to upload.
the file to save to. Defaults to a tempfile. Using the default is highly advised, as using a non-tempfile will write a file that persists on the disk (either in the working directory, or at the location specified).
Title of file.
The message text introducing the file in specified channels.
Comma-separated list of channel names or IDs where the file will be shared.
Authentication token bearing required scopes.
Provide another message's ts value to upload this file as a reply. Never use a reply's ts value; use its parent instead.
additional arguments to be passed to write.csv()
.
Matt Kaye (aut)
slackr_upload()