ch_history | R Documentation |
Displays and sets the current session' chat history
ch_history(x = NULL)
x |
An list object that contains chat history. Use this argument to override the current history. |
A list object with the current chat history
library(chattr)
chattr_use("test", stream = FALSE)
chattr("hello")
# View history
ch_history()
# Save history to a file
chat_file <- tempfile()
saveRDS(ch_history(), chat_file)
# Reset history
ch_history(list())
# Re-load history
ch_history(readRDS(chat_file))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.