https://rlang.r-lib.org/reference/interrupt.html
Simulate interrupt condition — interrupt • rlang
interrupt() simulates a user interrupt of the kind that is signalled with Ctrl-C. It is currently not possible to create custom interrupt condition objects.
simulateinterruptconditionrlang