Skip to contents

This function enables or disables the internal input validation checks (assertions) by setting the options(edi.run_asserts = ...) value. Disabling assertions can provide a significant performance boost in heavy simulations (often 10x-20x speedup), but it removes the safety rails that prevent invalid data from reaching the internal algorithms.

Warning: If assertions are disabled, passing malformed or invalid data to package functions may result in cryptic R errors, incorrect statistical results, or even hard system crashes (SEGFAULTs) at the C++ layer. Only disable assertions if you are certain your data is pre-validated and follows the package requirements exactly.

Usage

toggle_asserts(on = TRUE)

Arguments

on

Logical scalar. If TRUE (default), assertions are executed. If FALSE, they are skipped.