What’s new with AzureR

[This article was first published on Revolutions, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

by Hong Ooi

This is an update on what’s been happening with the AzureR suite of packages. First, you may have noticed that just before the holiday season, the packages were updated on CRAN to change their maintainer email to a non-Microsoft address. This is because I’ve left Microsoft for a role at Westpac bank here in Australia; while I’m sad to be leaving, I do intend to continue maintaining and updating the packages.

To that end, here are the changes that have recently been submitted to CRAN, or will be shortly:

AzureAuth now allows obtaining tokens for the “organizations” and “consumers” generic tenants, in addition to “common”. This should make it easier to authenticate users who are using a personal account, as opposed to a work & school account. This is now live on CRAN.

AzureStor gains convenience functions for transferring data in several commonly-used formats: RDS (as created by saveRDS/readRDS), RData (as created by save/load), CSV, CSV2, and tab-delimited. These work via connections and so don’t create temporary files on disk.

AzureRMR makes it easier to retrieve subresources by adding a get_subresource method to the az_resource class. For example, if res is a storage account resource, you can obtain the subresource for a particular blob container with res$get_subresource(type="blobServices/default/containers", name="containername"). It now authenticates using AAD v2.0 by default.

AzureGraph has had several changes:

  • Like AzureRMR, it also now authenticates using AAD v2.0 by default, making it more convenient to use with personal accounts (which require AAD v2.0).
  • get_graph_login is much more flexible, letting you choose authentication parameters like the permission scope(s), app ID, and authorisation method.
  • The internals have undergone a refactoring to enhance extensibility.

All of these changes are put to good use in the new Microsoft365R package, which is intended to be an interface to Microsoft 365 (formerly known as Office 365). Currently, it enables you to access your data stored in OneDrive (personal or business) and SharePoint Online, using the Microsoft Graph API. This will be released to CRAN in the next few weeks; later versions may add support for other Microsoft 365 services.

The new AzureCosmosR package is an interface to Azure Cosmos DB. Like the other interface packages in AzureR, it provides both management plane and data plane access, in the latter case to the SQL (core) API. You can easily create and manage Cosmos DB accounts, run queries, and create and execute stored procedures. Like Microsoft365R, this should be released to CRAN in the next few weeks.

If you have any comments or feedback, feel free to drop me a line at [email protected].

To leave a comment for the author, please follow the link and comment on their blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)