I'm using a function out of some library that calls a C function which prints a lot of stuff out to standard out that I don't need.
I've tried using sink
(tried both "messages" and "output" for type
), capture.output
, suppressWarnings
, suppressMessages
to try to suppress that output - all to no effect, it still prints the stuff out. What else can I use? And why exactly does the above not work?
I don't have access to the source of the function to check how it's printing stuff, and the library is private, so no reproducible examples unfortunately.
I'll also love any workarounds for the above problem, no matter how ugly.