Skip to content

Please use parallelly::availableCores() instead of future::availableCores() #12

@HenrikBengtsson

Description

@HenrikBengtsson

Hello,

future::availableCores() is a re-export of parallelly::availableCores() since 2020. My plan is to eventually remove it from the future package. When you have time, please update your package to use parallelly::availableCores() instead of future::availableCores() in:

if(is.null(n_cores)) n_cores <- future::availableCores() - 1

I also recommend replacing with:

 if(is.null(n_cores)) n_cores <- parallelly::availableCores(omit = 1) 

See https://parallelly.futureverse.org/reference/availableCores.html?q=availableCores%20omit#avoid-ending-up-with-zero-cores for a motivation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions