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))
produces 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.
However, class(aCorpus) executed in the console produces the correct class. For example
> class(aCorpus)
[1] "VCorpus" "Corpus"
Is this a known problem between tm and RStudio?