checkInterrupt: Check for interrupt (e.g. Ctrl-C) during nimbleFunction...

View source: R/nimbleFunction_Rexecution.R

checkInterruptR Documentation

Check for interrupt (e.g. Ctrl-C) during nimbleFunction execution. Part of the NIMBLE language.

Description

Check for interrupt (e.g. Ctrl-C) during nimbleFunction execution. Part of the NIMBLE language.

Usage

checkInterrupt()

Details

During execution of nimbleFunctions that take a long time, it is nice to occassionally check if the user has entered an interrupt and bail out of execution if so. This function does that. During uncompiled nimbleFunction execution, it does nothing. During compiled execution, it calls R_checkUserInterrupt() of the R headers.

Author(s)

Perry de Valpine


nimble documentation built on Sept. 11, 2024, 7:10 p.m.