tests/testthat/test-no-tbb.R

# Loading TBB (RcppParallel's library) is what CRAN's gcc-UBSAN check reports,
# so neither loading this package nor its gradients may load it.
test_that("gradients do not load the TBB library", {
  skip_if_not(file.exists("/proc/self/maps"))
  .r <- llikNorm(c(-1, 0.5, 2), mean = 1, sd = 2, full = TRUE)
  expect_true(all(is.finite(.r$dMean)))
  expect_false("RcppParallel" %in% loadedNamespaces())
  expect_false(any(grepl("libtbb", readLines("/proc/self/maps"), fixed = TRUE)))
})

Try the rxode2ll package in your browser

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

rxode2ll documentation built on Sept. 15, 2026, 5:10 p.m.