tests/testthat/helper-backend-option.R

# Lets CI force a specific backend for reference / coverage runs via env var
# (options set in the parent process don't propagate through subprocess test
# runners like tools::testInstalledPackage, but env vars do).
if (nzchar(Sys.getenv("IMMUTABLES_USE_CPP"))) {
  options(immutables.use_cpp = as.logical(Sys.getenv("IMMUTABLES_USE_CPP")))
}

Try the Immutables package in your browser

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

Immutables documentation built on April 29, 2026, 1:06 a.m.