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