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
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)
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