powered by
Removes formatting artifacts and returns clean text for copying
goose_clean_text(text, preserve_markdown = TRUE)
Clean text suitable for copying
Character string with formatted text
Logical, keep markdown formatting (default TRUE)
if (FALSE) { response <- goose_ask("What is R?") # Copy-friendly version: clean <- goose_clean_text(response) cat(clean) }
Run the code above in your browser using DataLab