slackr | An R package for sending messages from R to Slack | Chat library
kandi X-RAY | slackr Summary
kandi X-RAY | slackr Summary
The slackr package contains functions to interact with the Slack messaging platform. When you need to share information/data from R, rather than resorting to copy/paste, emails, other services like Skype, you can use this package to send well-formatted output from R to all teammates at the same time with little effort. You can send text, R function output, images from the current graphics device and ggplots, R objects (as R data files), rendered LaTeX expressions, and uploaded files.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of slackr
slackr Key Features
slackr Examples and Code Snippets
Community Discussions
Trending Discussions on slackr
QUESTION
I am currently trying to create a slack - R integration to create an alert when specific rules / threshold is hit. I'm using slackr package (v. 2.1.0)
The only function that is working right now is only slackr::slackr_bot
as it successfully send a bot message into the private channels.
ANSWER
Answered 2021-Feb-04 at 18:53Unfortunately I'm experiencing the same issue.
I can add that this is a problem that appeared very recently.
A Shiny App I developed months ago relies on slackr & gmailR to send notifications to the admin.
It started to fail on the slackr_setup with exactly the same error Error in if (nrow(chan) == 0) {
on last deployment a few days ago.
I just fixed it by installing the latest dev version on github !
devtools::install_github("mrkaye97/slackr")
I think the fix came from this commit where if(nrow(chan)==0)
was replaced by if(is.null(chan)||nrow(chan)==0)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install slackr
Creating a single-channel bot Using only a webhook to send messages to a channel
Creating a fully-functional multi-channel bot Creating a bot user to send messages to multiple channels, including plots, tables, files, etc. as well as deleting messages, reading the channels in a workspace, etc.
The slackr_setup() function will try to read setup values from a ~/.slackr (you can change the default) configuration file, which may be easier and more secure than passing them in manually (plus, will allow you to have multiple slackr configurations for multiple Slack.com teams). The file is in Debian Control File (DCF) format since it really doesn’t need to be JSON and R has a handy read.dcf() function since that’s what DESCRIPTION files are coded in.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page