Skip to content

Question about output the objects on slave by SNOW

2 messages · Libo Sun, Stephen Weston

#
'cat' and 'print' work from the workers, but the
output is redirected to /dev/null (or NUL:) by
default.  If you set the 'outfile' option to an
empty string when creating the cluster object,
then output won't be redirected in the workers,
and will generally be displayed in your session.

For example:
+   y <- sin(x)
+   cat('x=', x,'\n')
+   return(y)
+ }
starting worker for localhost:10187
starting worker for localhost:10187
Type: EXEC
Type: EXEC
Type: EXEC
Type: EXEC
Type: EXEC
x= 1
Type: EXEC
x= 1
[1] 0.841471 0.841471


The output can be a bit jumbled, and it includes
other output generated by the workers, but I find it
very useful for debugging.

- Steve
On Fri, Mar 16, 2012 at 12:23 PM, Libo Sun <libosun at rams.colostate.edu> wrote: