MattermostR 0.2.0 — major update to the R package for Mattermost

Hi all,

I’ve just released MattermostR 0.2.0, an R package wrapping the Mattermost REST API v4. It’s available on GitHub: https://github.com/GreenGrassBlueOcean/MattermostR

Docs: https://greengrassblueocean.github.io/MattermostR/

What’s new

A lot has been added since 0.1.0. Highlights:

  • Webhooks & thread repliessend_webhook_message() for incoming webhooks (no auth needed), and root_id on send_mattermost_message() for posting into threads.

  • Reactions & pinsadd_reaction(), get_reactions(), remove_reaction(), pin_post(), unpin_post().

  • Direct & group messagescreate_direct_channel() handles both DMs (2 users) and group messages (3–8 users).

  • Channel membershipget_channel_members(), remove_channel_member(), and a new batch add_users_to_channel() (up to 1000 users, single API call).

  • User statusget_user_status() and set_user_status() with DND end-time support.

  • Bot management — full CRUD for bot accounts.

  • Slash commands — full lifecycle management.

  • Rate limiting — proactive throttling at 10 req/s, reactive 429 handling via X-Ratelimit-Reset.

  • Structured errors — HTTP errors now raise a typed mattermost_error condition.

  • Credential security — env vars (MATTERMOST_TOKEN / MATTERMOST_URL) take precedence over R options; cache_credentials = FALSE and clear_mattermost_credentials() added.

  • Message priority fix — priority is now correctly sent under metadata$priority. Valid values are "Normal", "Important", and "Urgent".

Happy to hear feedback or feature requests!