Re: [R] parallel computing with foreach()

2017-12-07 Thread Kumar Mainali
Thanks Peter. I failed to realize earlier that one of the functions I used came from a package. The following solved the problem. foreach(i = 1:length(splist)) %:% foreach(j = 1:length(covset), .packages = c("raster")) %dopar% { ... On Thu, Dec 7, 2017 at 1:52 AM, Peter Langfelder wrote:

Re: [R] parallel computing with foreach()

2017-12-06 Thread Peter Langfelder
Your code generates an error that has nothing to do with dopar. I have no idea what your function stack is supposed to do; you may be inadvertently calling utils::stack which would produce this kind of error: > stack(1:25, RAT = FALSE) Error in data.frame(values = unlist(unname(x)), ind, stringsAs

Re: [R] parallel computing with 'foreach'

2011-07-07 Thread Lui ##
Hello Stacey, I do not know whether my answer comes late or not, just came across your post now. I had a similar problem... First: You might want to think about whether to try to parallelize the thing or not. Unless coxph takes several minutes, it is probably of no great help to parallelize it, b

Re: [R] parallel computing with 'foreach'

2011-06-30 Thread Uwe Ligges
Type ?foreach and read the whole help page - as the positng guide asked you to do before posting, you will find the line describing the argument ".packages". Uwe Ligges On 28.06.2011 21:17, Stacey Wood wrote: Hi all, I would like to parallelize some R code and would like to use the 'forea