using slack with R

I am trying to figure out if we can integrate R with slack. As in if I run some script in R the output can be displayed in an slack channel. I have seen the package slackr . But when I use it it throws set of errors.

``

library("slackr")
sh: kpsewhich: command not found
Error: package or namespace load failed for ‘slackr’:
.onLoad failed in loadNamespace() for 'texPreview', details:
call: system(sprintf("kpsewhich %s.sty", x), intern = TRUE)
error: error in running command


Any suggestions on what other approach I could use or if slackr how to use that.

Thank you.

About this issue, you are missing a package dependency, try installing it

install.packages("texPreview")

I still get the same error

sh: kpsewhich: command not found
Error: package or namespace load failed for ‘texPreview’:
 .onLoad failed in loadNamespace() for 'texPreview', details:
  call: system(sprintf("kpsewhich %s.sty", x), intern = TRUE)
  error: error in running command

So I did fix it. But when I did use the slackr function I get this error:

slackrSetup(channel="channel, api_token = token,
            incoming_webhook_url=webhook)


slackr(str(iris))

Error in fix.by(by.x, x) : 'by' must specify a uniquely valid column

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.