Ship Outlook e mail and Groups messages with R


If you happen to analyze knowledge in R and share info by way of Microsoft 365, I’ve excellent news: There may be a simple technique to join R with Outlook, Groups, OneDrive, and SharePoint. The Microsoft365R R bundle, developed by the Microsoft Azure crew, contains capabilities to work with Microsoft 365 APIs from R. 

Right here we’ll stroll by the right way to ship Outlook e mail and Groups messages with R.

Microsoft365R is obtainable on CRAN, so you possibly can set up it with set up.packages("Microsoft365R").

Authenticate R to work with Outlook

Step one is to authenticate R to work along with your account. The operate for that relies on the Microsoft 365 service and whether or not it’s in a enterprise or private account.

To authorize an enterprise Outlook account, for instance, load the Microsoft365R bundle after which use its get_business_outlook() operate:

my_outlook <- get_business_outlook()

Within the code above I’m creating a brand new object my_outlook of sophistication ms_outlook.  

Copyright © 2021 IDG Communications, Inc.


Please enter your comment!
Please enter your name here