The tidytext book has examples with a tidier for topicmodels:
library(tidyverse) library(tidytext) library(topicmodels) library(broom) year_word_counts <- ti
Deleting .Rhistory and .RData led to correct behaviour.