All Projects → mrkaye97 → Slackr

mrkaye97 / Slackr

Licence: other
#️⃣ A package to send webhook API messages to Slack.com channels/users from R

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Slackr

simple-slack-notify
Slack notification action that just works
Stars: ✭ 23 (-91.45%)
Mutual labels:  slack
r-project-workflows
List of workflow tools for R projects
Stars: ✭ 69 (-74.35%)
Mutual labels:  rstats
Slack Theme Cli
A CLI tool for changing Slack's desktop app colors
Stars: ✭ 256 (-4.83%)
Mutual labels:  slack
slackblocks
🎲 Python API for Building Messages Using the Slack Block Kit API
Stars: ✭ 32 (-88.1%)
Mutual labels:  slack
NHSRtheme
R package that helps to create plots that follow the NHS Identity
Stars: ✭ 19 (-92.94%)
Mutual labels:  rstats
wikitaxa
taxonomy data from Wikipedia/Wikidata/Wikispecies
Stars: ✭ 16 (-94.05%)
Mutual labels:  rstats
python-slack-discovery-sdk
This project aims to make using Slack's Discovery APIs easier.
Stars: ✭ 18 (-93.31%)
Mutual labels:  slack
Laravel Slack
#️⃣ Slack notification for Laravel as it should be. Easy, fast, simple and highly testable.
Stars: ✭ 263 (-2.23%)
Mutual labels:  slack
hereR
R package that provides an interface to the HERE REST APIs: Geocoder API, Routing API, Traffic API, Public Transit API and Destination Weather API. Locations and routes are returned as 'sf' objects.
Stars: ✭ 72 (-73.23%)
Mutual labels:  rstats
Alfred Slack
The Slack workflow for Alfred app
Stars: ✭ 254 (-5.58%)
Mutual labels:  slack
website-change-monitor
Monitor a website and get email and Slack notifications when specific changes are detected
Stars: ✭ 104 (-61.34%)
Mutual labels:  slack
bcmaps
An R package of map layers for British Columbia
Stars: ✭ 53 (-80.3%)
Mutual labels:  rstats
rmd2jupyter
Convert Rmd (rmarkdown) to ipynb (Jupyter notebook)
Stars: ✭ 17 (-93.68%)
Mutual labels:  rstats
layer
Create stacked tilted maps
Stars: ✭ 97 (-63.94%)
Mutual labels:  rstats
Query track
Find time-consuming database queries for ActiveRecord-based Rails Apps
Stars: ✭ 258 (-4.09%)
Mutual labels:  slack
roadoi
Use Unpaywall with R
Stars: ✭ 60 (-77.7%)
Mutual labels:  rstats
worrms
World Register of Marine Species R client
Stars: ✭ 13 (-95.17%)
Mutual labels:  rstats
Rbook
Source files for "Learning Statistics with R"
Stars: ✭ 267 (-0.74%)
Mutual labels:  rstats
Aws To Slack
Forward AWS CloudWatch Alarms and other notifications from Amazon SNS to Slack.
Stars: ✭ 261 (-2.97%)
Mutual labels:  slack
kaggler
🏁 API client for Kaggle
Stars: ✭ 50 (-81.41%)
Mutual labels:  rstats

slackr - send messages to Slack

CRAN status R-CMD-check Lifecycle: experimental downloads codecov

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.

Installation

# CRAN version
install.packages("slackr")

# Development version
devtools::install_github("mrkaye97/slackr")

Breaking Changes

Version 2.0.0+ is updated to work with the new Slack API structure!

Setup

There are two ways of interfacing with slackr that provide significantly different functionality:

  1. Creating a single-channel bot

    Using only a webhook to send messages to a channel

  2. 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.

In most cases, we recommend Option 1 above. This requires the fewest permissions and is the simplest to set up, and will allow basic messaging to a specific channel.

See the vignettes for setup instructions.

Vignettes

The vignettes contain setup instructions and example usage:

  • Option 1 setup: vignette('scoped-bot-setup', package = 'slackr')
  • Option 2 setup: vignette('webhook-setup', package = 'slackr')
  • Usage: vignette('using-slackr', package = 'slackr')

Config File Setup

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.

Here’s the basic format for the configuration file:

bot_user_oauth_token: Your app's bot user OAuth token
channel: #general
username: slackr
incoming_webhook_url: https://hooks.slack.com/services/XXXXX/XXXXX/XXXXX
icon_emoji = 'boom'

You can also change the default emoji icon (from the one you setup at integration creation time) with icon_emoji.

Contributors

Many thanks to:

for their contributions to the package!

Known Issues

  • Depending on your scopes, slackr could quietly fail (i.e. not throw an error, but also not post anything to your channel). If this happens, try explicitly adding the app you’re trying to have slackr post as to the channel you want in your Slack workspace with /invite @your_app_name or make sure you have chat:write.public enabled.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].