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 replies —
send_webhook_message()for incoming webhooks (no auth needed), androot_idonsend_mattermost_message()for posting into threads. -
Reactions & pins —
add_reaction(),get_reactions(),remove_reaction(),pin_post(),unpin_post(). -
Direct & group messages —
create_direct_channel()handles both DMs (2 users) and group messages (3–8 users). -
Channel membership —
get_channel_members(),remove_channel_member(), and a new batchadd_users_to_channel()(up to 1000 users, single API call). -
User status —
get_user_status()andset_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_errorcondition. -
Credential security — env vars (
MATTERMOST_TOKEN/MATTERMOST_URL) take precedence over R options;cache_credentials = FALSEandclear_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!