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

makeClusterPSOCK(): Add rscript_options #70

Open
HenrikBengtsson opened this issue Nov 2, 2021 · 1 comment
Open

makeClusterPSOCK(): Add rscript_options #70

HenrikBengtsson opened this issue Nov 2, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@HenrikBengtsson
Copy link
Collaborator

Add argument rscript_options to makeClusterPSOCK(), cf. argument rscript_envs. This can be used to see R options on the cluster nodes on startup. For example,

cl <- makeClusterPSOCK(1, rscript_options=list(socketOptions="no-delay"))

and

options(socketOptions="no-delay")
cl <- makeClusterPSOCK(1, rscript_options="socketOptions")

Background: futureverse/future#437

@HenrikBengtsson
Copy link
Collaborator Author

The complicated part here is that, contrary to env vars, options can hold objects of any type, which makes then hard to pass via an CLI option. One could serialize them and unserialize on node, but that will add lots of clutter and will have an upper limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant