inst/test-data/cgroups2/log1.R

ncores <- parallelly::availableCores(which = "all")
print(ncores)

stopifnot(
  "cgroups2.cpu.max" %in% names(ncores),
  ncores[["cgroups2.cpu.max"]] == 1L
)

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.