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

Would future::plan() work if embedded in a function? #237

Closed
EvoLandEco opened this issue May 27, 2022 · 2 comments
Closed

Would future::plan() work if embedded in a function? #237

EvoLandEco opened this issue May 27, 2022 · 2 comments

Comments

@EvoLandEco
Copy link

### case 1
fun_that_sets_plan <- function(strategy, workers) {
    future::plan(strategy, workers)
}
furrr::future_map(things)
###

### case 2
future::plan(strategy, workers)
furrr::future_map(things)
###

I would like to know if case 1 works as case 2, that I put future::plan inside another function?

@EvoLandEco EvoLandEco changed the title Will future::plan() work if embedded in a function? Would future::plan() work if embedded in a function? May 27, 2022
@jinyancool
Copy link

I donot think that case 1 works as case 2. But it will be easy test it.

@EvoLandEco
Copy link
Author

@jinyancool I tried and it worked, It would be much appreciated if you could also try and confirm it

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