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 which 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:
- 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.
- 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 setup 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.