[R] snow parLapply standard output

2007-03-27 Thread Frank Preiswerk
I am slightly confused by the way the standard output is redirected in a R snow cluster environment. I am using parLapply from the snow package to execute a function on my MPI/LAM cluster. How can I redirect standard output (produced using cat) from this function back to the terminal where I

Re: [R] snow parLapply standard output

2007-03-27 Thread Luke Tierney
On Tue, 27 Mar 2007, Frank Preiswerk wrote: I am slightly confused by the way the standard output is redirected in a R snow cluster environment. I am using parLapply from the snow package to execute a function on my MPI/LAM cluster. How can I redirect standard output (produced using cat)

Re: [R] snow parLapply standard output

2007-03-27 Thread Martin Morgan
Frank -- Perhaps what you want to do is summarize - function(lst) { lapply(lst, function(elt) { if (elt$status==ok) elt$value else NA }) } summarize(parLapply(tasks, function(elt) { # fancy calculation, then list(status=ok, value=...) })) i.e., return status