Learn R Programming

RSiteCatalyst (version 1.4.16)

GetReport: Get EnQueued Report by report ID

Description

Get a single report by report id, this allow asynchronous way of getting reports.

Usage

GetReport(report.id, interval.seconds = 10, max.attempts = 3,
  print.attempts = TRUE, format = "json", page = 0)

Arguments

report.id

report id that's returned by QueueTrended and other functions while used with enqueueOnly parameter set to TRUE

interval.seconds

How long to wait between attempts

max.attempts

Number of API attempts before stopping

print.attempts

Print each attempt for fetching data

format

"csv" or "json"

page

Page Number of Resuts (QueueDataWarehouse only)

Value

Data frame

Details

This is a function for advanced users, after you've enqueued multiple reports and want to get one of them when it's ready.

Examples

Run this code
# NOT RUN {
custom_report <- GetReport(12345678)

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab