knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(RedditText)
We want a word cloud of the latest 500 posts from the subreddit r/Rabbits.
num_posts <- 500 subreddit <- "Rabbits" words <- get_word_freq(num_posts, subreddit) knitr::kable(head(words))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.