mclapply

mclapply returns NULL randomly

和自甴很熟 提交于 2019-11-27 14:43:59
问题 When I am using mclapply, from time to time (really randomly) it gives incorrect results. The problem is quite thoroughly described in other posts across the Internet, e.g. (http://r.789695.n4.nabble.com/Bug-in-mclapply-td4652743.html). However, no solution is provided. Does anyone know how to fix this problem? Thank you! 回答1: The problem reported by Winston Chang that you cite appears to have been fixed in R 2.15.3. There was a bug in mccollect that occurred when assigning the worker results

tm_map has parallel::mclapply error in R 3.0.1 on Mac

僤鯓⒐⒋嵵緔 提交于 2019-11-26 23:14:16
问题 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? 回答1: I suspect you don't have the SnowballC package installed, which seems to be required. tm_map is supposed to run stemDocument on

R tm In mclapply(content(x), FUN, …) : all scheduled cores encountered errors in user code

99封情书 提交于 2019-11-26 20:39:37
问题 When I run the following codes to the penultimate line, I got Warning message: In mclapply(content(x), FUN, ...) : all scheduled cores encountered errors in user code When I run the final line, I got "Error in UseMethod(\"words\") : \n no applicable method for 'words' applied to an object of class \"character\"\n" attr(,"class") "try-error" attr(,"condition") The following link is a reproducible example which we can copy/paste into R and run. https://github.com/weijia2013/mclapply-issue/blob