I try to use parApply()
in parallel package in R.
cl <- makeCluster(16)
cl.boot <-makeCluster(8)
In my programme, I call t(parApply(cl,rv,1,sim.one.test))
first. In function sim.one.test
,a call a function boot()
. And in boot()
, I use
bs.resample <- t(parApply(cl.boot,rv.boot,1,function(x) bs.mle(n1,n2,x,s,t1,t2,m,theta)))
Simply, the outer function is sim.one.test()
and inner one is bs.mle()
.
The error information is invalid connection
. I guess this is because nested parallel is not supported. From another questions on stackoverflow, it is suggested I should use mcapply()
which only can be applied on Linux but I run the programme on Windows platform. Is there any solution for nested parallel computing on Windows platform? Thanks.