tests/testthat/test-api-control-opt-start-guard.R

test_that("control_opt rejects model starts passed via partial matching", {
  expect_error(
    control_opt(start = list(dummy = TRUE)),
    "`start` is not a `control_opt\\(\\)` argument"
  )
})

test_that("control_opt validates start_sd eagerly", {
  expect_error(
    control_opt(start_sd = list(dummy = TRUE)),
    "start_sd must be a numeric scalar"
  )
})

Try the ngme2 package in your browser

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

ngme2 documentation built on May 20, 2026, 9:10 a.m.