How to suppress Large Query message in R?

45 views Asked by At

I use pxweb to query data from Swedish statistics.

But I have problem to hide the large query problem.

enter image description here

I have tried to hide it with echo, message, warning = FALSE

but nothing works.

Wondering how I can hide this message.

1

There are 1 answers

1
Roman Luštrik On

Looking at the source code of the function here I can see that the authors decided to use cat to enlighten you with the message. This can be circumvented in a few ways, like flushing it into the void using capture.output. However, for your use case, try setting pxweb_get(..., verbose = FALSE) and see if it helps.