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();
|
ecores <- future::availableCores() |
|
if (!is.numeric(ecores)) ecores <- 1 |
BTW, you can drop
if (!is.numeric(ecores)) ecores <- 1
because availableCores() is guaranteed to return a positive integer.
Hello,
future::availableCores()is a re-export ofparallelly::availableCores()since 2020. My plan is to eventually remove it from the future package. When you have time, please update your package to useparallelly::availableCores()instead offuture::availableCores();PINstimation/R/utilities_functions.R
Lines 499 to 500 in ac6a463
BTW, you can drop
because
availableCores()is guaranteed to return a positive integer.