tests/testthat/test-.check_fapply_args.R

test_that("check_fapply_args handles invalid ncores and pb", {
  expect_warning(res <- functionals:::.check_fapply_args(1:3, sum, ncores = -1, pb = "maybe"))
  expect_equal(res$ncores, 1)
  expect_false(res$pb)
})

Try the functionals package in your browser

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

functionals documentation built on Aug. 8, 2025, 7:32 p.m.