You can hook up your Displayr account to Slack to report on R-based updating errors. This is useful when you have R-based items that update automatically because you will not see whether or not they ran successfully. This article describes how to connect Displayr to the Slack app to create a daily summary alert of all outstanding R object updating errors. The message summarizes the number of errors that are outstanding and provides a link to the status page.
You'll see this in Slack:
and the link will send you to the Scheduled R Updating status page on your Displayr account where you can review auto-updated R-based items with errors:
Requirements
- A paid Displayr license with time purchased for Server time for private dashboards and API (also known as View Hours).
- A Document that uses one of the methods from How to Automatically Update Calculations, Variables, and Data Sets Using R.
Method
- Create an incoming webhook in Slack using the following link and inserting your slack name where prompted: https://yourslacknamehere.slack.com/apps/new/A0F7XDUAZ-incoming-webhooks. For example, our full link is: https://displayr.slack.com/apps/new/A0F7XDUAZ-incoming-webhooks
- Select the channel where you'd like the errors to show up in the Post to Channel dropdown (or click create a new channel).
- Click Add Incoming Webhooks Integration do not close this tab. Note, you don't need to set a username or icon because Displayr will override these settings.
- In a separate tab, log into Displayr and go to the Profile icon > Account Settings > Settings.
- Ensure the account is set up as a multi-user company by ensuring the blue button a the bottom of the page says Revert to single user company. If it says Expand Company name, then click it to make it multi-user.
- Scroll to the Webhooks table at the bottom and click New Webhook.
- Copy the Webhook URL from the Incoming Webhooks Integration tab, in Step 3, into the URL field and ensure Kind is set to R update failures to Slack (aggregating).
- Click Save.
Next
How to Handle Outputs with Small or No Data Using R
How to Hide an Output with a Small Sample Size Using an R Error
How to Automatically Update Calculations, Variables, and Data Sets Using R