Hi all,

I am using SNOW package on my multi-core Windows machine. I am wondering if
there is a way to output the objects on slave, as far as I know 'cat' or
'print' doesn't work. One simple example:

> f<-function(iter,x) {
+ y=sin(x)
+ cat('x=', x,'\n')
+ return(y)
+ }
>
> library(snow)
> cl<-makeCluster(2)
> clusterExport(cl,ls())
>
> parSapply(cl,1:2,f,1)
[1] 0.841471 0.841471
>

I would like to get the information about 'x', like this,

> sapply(1:2,f,1)
x= 1
x= 1
[1] 0.841471 0.841471
>

Thanks,
Libo

	[[alternative HTML version deleted]]

