Save corpus to text (and RData) file.


Small utility to save a corpus to a text file (and RData file) for ease of use.

It is possibly recommended to pass a filename to the C++ function textreg rather than the entire corpus for large text since I believe it will otherwise copy over everything due to the coder's (my) poor understanding of how RCpp converts objects.


1, filename = "corpus")



A tm Corpus object.


The first part of the filename. A rda and txt extension will be appended to the two generated files.

Want to suggest features or report bugs for Use the GitHub issue tracker. Vote for new features on Trello.

comments powered by Disqus