# Set data folder first
withr::with_dir(system.file("extdata", package = "gmoTree"), {
# Import all oTree files in this folder and its subfolders
oTree <- import_otree()
})
# Show all Chats column names
print(colnames(oTree$Chats))
# Run function
oTree <- messy_chat(oTree, combine = TRUE)
# Show all Chats column names again
print(colnames(oTree$Chats))
Run the code above in your browser using DataLab