tulpa_hyper_check_copy_slab: Validate/default a copy-scale slab measure choice

View source: R/hyper_quadrature.R

tulpa_hyper_check_copy_slabR Documentation

Validate/default a copy-scale slab measure choice

Description

Validates a copy_slab argument – "exponential" (the default) or "flat", the two continuum measures tulpa supports for a copy scale's non-atom mass – defaulting NULL to "exponential" and erroring on anything else. Intended so a consumer package's own copy_slab argument stays in sync with tulpa's own accepted choices rather than restating them.

Usage

tulpa_hyper_check_copy_slab(x)

Arguments

x

A copy_slab value: NULL, "exponential", or "flat".

Value

x, defaulted to "exponential" when NULL.

See Also

tulpa_hyper_copy_slab_density()

Examples

tulpa_hyper_check_copy_slab("exponential")
try(tulpa_hyper_check_copy_slab("uniform"))

tulpa documentation built on Oct. 19, 2026, 5:09 p.m.