fabletools icon indicating copy to clipboard operation
fabletools copied to clipboard

Saving report() as an object rather than displaying on the console

Open andrewbcooper opened this issue 5 months ago • 1 comments

I've poked around quite a bit but haven't found anything about this. The report() function is fantastic, but I can only get it to display on the console. I'm not able to save it as an object and then, say, reformat it or re-arrange the elements in a Markdown document. I've been able to partially accomplish this using:

myoutput <- utils::capture.output(report(mymodel))

But that's pretty clunky (and I don't trust that the location of the character strings will be consistent across different model formulations) Is there an option within the report() function to save it as an object?

Thanks!

andrewbcooper avatar Sep 04 '24 17:09 andrewbcooper