if (FALSE) {
# Basic authentications
pbi_auth(
tenant = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # The tenant ID
app = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # The app ID
password = "****" # The client secret
)
# Using environment variables
Sys.setenv(
PBI_TENANT = "my_tenant_id",
PBI_APP = "my_app_id",
PBI_PW = "my_app_client_secret"
)
pbi_auth()
}
Run the code above in your browser using DataLab