Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RS.eval wait=FALSE and ignore collection #43

Closed
jangorecki opened this issue Oct 23, 2015 · 1 comment
Closed

RS.eval wait=FALSE and ignore collection #43

jangorecki opened this issue Oct 23, 2015 · 1 comment

Comments

@jangorecki
Copy link

Considering the case when I need to call a function on server side without fetching the results I can use RS.eval(..., wait=FALSE). But after that I cannot run another calls due to:

Error in RS.eval(rsc, x, wait = wait, lazy = lazy) : 
  uncollected result from previous command, remove first

Can I ignore collection and proceed with next call somehow?

@s-u
Copy link
Owner

s-u commented Nov 16, 2015

No, because R is not threaded, so you can only run one R command at a given time, so you have to wait until the evaluation finished before submitting the next command. It's not as much about collection (you can always return NULL) but rather synchronization of the worker R.

You could add a queue on the client side if you wanted to enqueue commands until the R on the other side is ready to accept them - that's pretty much all you can do.

@s-u s-u closed this as completed Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants