The powerbiR R package (version 0.1.0) provides functions to push data frames to Power BI datasets and manage refreshes, workspaces, and users via the Power…
This document describes the powerbiR R package, an interface to the Power BI REST APIs. It includes functions for authenticating to Power BI, creating and refreshing datasets, pushing rows and schemas, deleting datasets and rows, and listing datasets and workspaces.
Demo data frames dim_hour and fact_visitors are included for testing. The package requires R 4.2.0 or later and imports data.table, jsonlite, httr, utils, and AzureAuth.
It makes it easy to push data to Power BI using R and the Power BI REST APIs, including turning data frames into Power BI datasets and refreshing them.
Use pbi_auth() with a tenant ID, app ID, and app password from an Azure Active Directory service-principal application.
The Power BI REST API has a limit of 10K rows per POST rows request, handled by splitting the data frame into chunks of 10K rows.