I am using R 3.0.1 on Platform: x86_64-apple-darwin10.8.0 (64-bit)
I am trying to use tm_map from the tm library. But when I execute the this code
library(tm)
data('crude')
tm_map(crude, stemDocument)
I get this error:
Warning message:
In parallel::mclapply(x, FUN, ...) :
all scheduled cores encountered errors in user code
Does anyone know a solution for this?
I ran into the same problem in
tm
using an Intel quad core I7 running on Mac OS X 10.10.5, and got the following warning:I was creating a corpus after downloading Twitter data.
Charles Copley's solution worked for me as well. I used:
tm_map(*filename*, stemDocument, lazy = TRUE)
after creating my corpus and then tm worked correctly.