tests/testthat/test-issue217.R

test_that("indirect effects with # in outcome are parsed", {
  m <- readModels(target = testthat::test_path("nbh_indirect.out"), what = "indirect")
  ind <- get_indirect(m)
  expect_true(any(ind$unstandardized$overall$outcome == "DVNB#1"))
  expect_true(any(ind$unstandardized$overall$outcome == "DVNB"))
})

Try the MplusAutomation package in your browser

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

MplusAutomation documentation built on Sept. 9, 2025, 5:25 p.m.