tests/testthat/test_autodetectCpus.R

context("BatchJobs mode")

test_that("BatchJobs mode", {
  k = autodetectCpus(MODE_MULTICORE)
  expect_true(is.integer(k) && length(k) == 1L)
})

Try the parallelMap package in your browser

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

parallelMap documentation built on June 28, 2021, 9:07 a.m.