inst/testme/test-freeCores.R

library(parallelly)

message("*** freeLoad() ...")

free <- freeCores()
print(free)

stopifnot(
  is.integer(free),
  length(free) == 1L,
  !is.na(free), free >= 1L
)

message("*** freeLoad() ... DONE")

Try the parallelly package in your browser

Any scripts or data that you put into this service are public.

parallelly documentation built on April 4, 2025, 4:38 a.m.