I'm using httr package in a function. I'd like to silence the message and run the code again if the message No encoding supplied: defaulting to UTF-8. is received.
I tried
try(getDatafunction,silent=TRUE)
But it still shows the message. Is there a way to avoid it? Thanks in advance!