【发布时间】:2011-04-04 21:56:53
【问题描述】:
我正在尝试运行 here 发布的 doSMP 示例:
require(plyr) # make sure you have 1.2 or later installed
x <- seq_len(20)
wait <- function(i) Sys.sleep(0.1)
system.time(llply(x, wait))
require(doSMP)
workers <- startWorkers(2) # My computer has 2 cores
registerDoSMP(workers)
system.time(llply(x, wait, .parallel = TRUE))
我收到以下警告:
Warning messages:
1: <anonymous>: ... may be used in an incorrect context: ‘.fun(piece, ...)’
2: <anonymous>: ... may be used in an incorrect context: ‘.fun(piece, ...)’
这些警告是什么意思,我应该担心它们吗?
编辑:
getRversion() = 2.12.2
packageDescription("plyr", fields="Version") = 1.4
packageDescription("doSMP", fields="Version") = 1.0-1
【问题讨论】:
-
你的 R 和 plyr 版本是多少? (
getRversion()和packageDescription("plyr", fields="Version")) -
@Marek:2.12.2 和 1.4。我编辑了我的原始帖子以反映这一点。有什么想法吗?
标签: r parallel-processing