tests/testthat/test-flux_fun_check.R

test_that("gets error with wrong inputs", {
  expect_message(
    flux_fun_check(
      list(ar1 = 3, ar2 = "blop"),
      fn = list(is.numeric, is.numeric),
      msg = rep("has to be numeric", 2)
    ),
    "Argument ar2 has to be numeric"
  )
})

Try the fluxible package in your browser

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

fluxible documentation built on June 25, 2025, 1:08 a.m.