Saves the full response from a Cassidy chat to a file without any
processing. Use cassidy_write_code() to separate code from explanations.
Usage
cassidy_write_file(x, path, open = interactive(), append = FALSE)See also
Other chat-functions:
cassidy_chat(),
cassidy_continue(),
cassidy_session(),
cassidy_write_code(),
chat(),
chat_text()
Examples
if (FALSE) { # \dontrun{
result <- cassidy_chat("Write documentation for this function", context = ctx)
# Save full response (no separation)
cassidy_write_file(result, "notes/function-docs.md")
} # }