tests/testthat/test_parser.R

devtools::load_all()

testthat::expect_error({
  modsemify("y ~ x + z + (x + z | cluster)", parentheses.as.string = FALSE)
})

testthat::expect_no_condition({
  modsemify("y ~ x + z + (x + z | cluster)", parentheses.as.string = TRUE)
})

testthat::expect_true(!PARSER_SETTINGS$parentheses.as.string)

Try the modsem package in your browser

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

modsem documentation built on March 28, 2026, 9:06 a.m.