-
-
Notifications
You must be signed in to change notification settings - Fork 0
Description
{htmltidy} — https://github.com/hrbrmstr/htmltidy — has a widget-based pretty printer.
The underlying libtidy — http://api.html-tidy.org/tidy/quickref_next.html#PrettyPrintHeader — it uses can pretty-print/reformat XML for use in outputting in text mode.
I could either add explicit textual pretty print processing functions in it that you could then use (it's on CRAN, and cld be made a Suggests with a namespace check for pretty printing if also loaded to avoid a hard dependency) or PR into here with libtidy code and just the text pretty printing (unless you also want the widget).
For console-output, doing checks for "being in RStudio" shld be "a thing" since one can still DoS RStudio with too much text output (yay using a browser DOM for text rendering).
Give it a ponder and lemme know.