Format AI response text for better display in R console
format_ai_response(
text,
width = 80,
indent = 0,
preserve_code = TRUE,
color = TRUE
)Formatted text (invisibly), printed to console
Character string with AI response
Integer, line width for wrapping (default 80)
Integer, spaces to indent wrapped lines (default 0)
Logical, whether to preserve code blocks (default TRUE)
Logical, whether to use color output (default TRUE)