# \donttest{
if (exists("topic_model")) {
visualize_barchart(model = topic_model, filename = "custom_barchart",
open_file = TRUE)
} else {
message("No topic_model found. Please train or load a model first.")
}
# }
Run the code above in your browser using DataLab