tests/testthat/test_stopWithJobErrorMessages.R

context("stopWithJobErrorMessages")

test_that("stopWithJobErrorMessages", {
  inds = seq_along(letters)
  msgs = letters
  expect_error(stopWithJobErrorMessages(inds, msgs),
    sprintf("Errors occurred in %i slave jobs", length(letters)))
})

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.