The following code ...
library(tm) vectorOfText <- c("twas brillig and the slithey toves", "did gyre and gimble in the wabes") names(vectorOfText) <- c("firstLine", "secondLine") aCorpus <- VCorpus(VectorSource(vectorOfText))
aCorpus with a class of List of 2 - It should produce a VCorpus. At least, List of 2 is shown in the RStudio environment window.
class(aCorpus) executed in the console produces the correct class. For example
> class(aCorpus)  "VCorpus" "Corpus"
Is this a known problem between tm and RStudio?