Re: [R] Threads in R

2011-08-24 Thread Immanuel
Thanks again, you are perfectly right. I checked and saw I was indeed polluting my machine with unclosed threads. On 08/23/2011 01:34 AM, Peter Langfelder wrote: > On Mon, Aug 22, 2011 at 3:12 PM, Immanuel wrote: >> Hello, >> >> thanks for the input. Below is a small example, simpler then expecte

Re: [R] Threads in R

2011-08-22 Thread Peter Langfelder
On Mon, Aug 22, 2011 at 3:12 PM, Immanuel wrote: > Hello, > > thanks for the input. Below is a small example, simpler then expected :) >  I'm just curious why I can't see any output from print(i). > > -- > library(multicore) > > f_long <- function() { >    for (i in 1:1

Re: [R] Threads in R

2011-08-22 Thread Immanuel
Hello, thanks for the input. Below is a small example, simpler then expected :) I'm just curious why I can't see any output from print(i). -- library(multicore) f_long <- function() { for (i in 1:1){ a=i} print(i) return("finished") } p_long <- para

Re: [R] Threads in R

2011-08-22 Thread Peter Langfelder
On Mon, Aug 22, 2011 at 12:39 PM, Immanuel wrote: > Hello all, > > I posted a questions on how to terminate a function call that does not > return after a certain time ( I can not modify the function code) some > time ago. > Since I didn't find a solution I just came up with the idea to run the >

[R] Threads in R

2011-08-22 Thread Immanuel
Hello all, I posted a questions on how to terminate a function call that does not return after a certain time ( I can not modify the function code) some time ago. Since I didn't find a solution I just came up with the idea to run the functions call in a separate thread who I could terminate a wil