Dear R,

I have two R instances running at the same time, say instance A and instance
B. Is there a simpler way to pass the data in A to B?

More precise, I have a stupid example:

In instance A, I am running a function "test1"

test1 <- function (x1)
{
     x2 <- sin(x1)
     return(x2)
}

In instance B, another function "test2"

test2 <- function (x2)
{
     x3 <- cos(x2)
     return(x3)
}

where " test2" receives the input from "test1"'s rueslt.  "test1" and
"test2" could be much more complex. They may take one minute each.

Now the whole procedure is instance A is running, while instance B is
waiting for the result of instance A. Once instance A is done (instance A
goes to run with new data), instance B should detect A is done, and instance
B receives the parameter from instance A. B begins to work. While B is done,
waiting for A's new results.

I want to repeat the loop many times and get x3 in the end.


Is it possible to do this job? Thanks !


Feng

	[[alternative HTML version deleted]]


