I am running the following code chunk
tdm = TermDocumentMatrix(ctext,control=list(minWordLength=1))
print(tdm)
inspect(tdm[10:20,11:18])
out = findFreqTerms(tdm,lowfreq=5)
print(out)
When I run it in console it runs fine. However when I include it as part of a RMD and try to Knit HTML (ioslides) I get an error:
Error:
inherits(doc, "TextDocument") is not TRUE