I encountered an error below when working with a TM package with R.
library("tm")
Loading required package: NLP
Warning messages:
1: package ‘tm’ was built under R version 3.4.2
2: package ‘NLP’ was built under R version 3.4.1
corpus <- VCorpus(DataframeSource(data))
Error: all (! Is.na (match (c ("doc_id", "text"), names (x)))) is not TRUE
We tried various methods, such as reinstalling the package, updating with the new version of R, but the error still persists. For the same data file, the same code runs on a different system with the same version of R.
source
share