Unlike the slackr_dev()
function, this one takes a tex
object,
eliminating the need write to pdf and convert to png to pass to slack.
slackr_tex(
obj,
channels = Sys.getenv("SLACK_CHANNEL"),
token = Sys.getenv("SLACK_TOKEN"),
ext = "png",
path = NULL,
title = NULL,
initial_comment = NULL,
thread_ts = NULL,
...
)
httr
response object (invisibly)
character object containing tex to compile.
Comma-separated list of channel names or IDs where the file will be shared.
Authentication token bearing required scopes.
character, type of format to return, can be tex, pdf, or any image device, Default: 'png'.
character, path to save tex_preview outputs, if NULL then tempdir is used, Default: NULL.
Title of file.
The message text introducing the file in specified channels.
Provide another message's ts value to upload this file as a reply. Never use a reply's ts value; use its parent instead.
other arguments passed to texPreview::tex_preview()
, see Details
Jonathan Sidi (aut)
Please make sure texPreview
package is installed before running this function.
For TeX setup refer to the
Setup notes on LaTeX
.
texPreview::tex_preview()