question

Upvote
Accepted
68 2 3 4

check quota usage using R package DatastreamDSWS

hi, how can I check quota usage using R package DatastreamDSWS? I tried the following but I get NA


mydsws <- dsws$new()
myData <- mydsws$snapshotRequest(instrument = c("STATS"),
datatype = c("DS.USERSTATS"), requestDate = "0D")

thanks



datastream-apidsws-apir
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
52.9k 136 44 63

@gino.cenedese

Thanks for reaching out to us.

Please try this code:

myStat <- mydsws$snapshotRequest(instrument = "STATS", 
                                 datatype = "DS.USERSTATS", 
                                 requestDate = Sys.Date())

You can also change the requestDate to "2022-08-01" for the previous month's statistics.

Please feel free to reach out if you have any further questions.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
68 2 3 4

Thanks, it works!

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.