mihaiconstantin / powerly

`powerly` is an R package for conducting sample size analysis for network models and more.
https://powerly.dev
Other
7 stars 3 forks source link

Cluster cores not set when more cores than available are requested #2

Closed mihaiconstantin closed 2 years ago

mihaiconstantin commented 2 years ago

Somewhere on the else if branch (i.e., see below) we need to set the maximum number of cores that can be used, e.g.,:

# Set the cores.
private$.cores <- private$.allowed_cores

https://github.com/mihaiconstantin/powerly/blob/d6be4e671a391c2614a919135e4e0292fe2cd381/R/Backend.R#L38-L43