question

Upvote
Accepted
70 3 3 7

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.

@gino.cenedese

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS

Upvotes
Accepted
78.8k 250 52 74

@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
70 3 3 7

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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