fiery icon indicating copy to clipboard operation
fiery copied to clipboard

FYI: parallelly::supportsMulticore()

Open HenrikBengtsson opened this issue 2 years ago • 0 comments

FYI, instead of:

can_fork <- NULL
#' @importFrom parallelly availableCores
on_load({can_fork <- availableCores("multicore") > 1L})

you could use parallelly::supportsMulticore(). Other than being more clear, the advantage would be to that it returns TRUE also when there's a single core available.

HenrikBengtsson avatar Mar 17 '23 19:03 HenrikBengtsson