R/R_CheckUserInterrupt.R

Defines functions R_CheckUserInterrupt

Documented in R_CheckUserInterrupt

#' Checks for User Interrupt
#'
#' Check if the user has requested an interrupt, and if so branch to
#' \R's error signaling functions.
#'
#' @param void (void) Nothing.
#'
#' @return Nothing.
#'
#' @section C API:
#'
#' ```c
#' #include <R_ext/Utils.h>
#'
#' void R_CheckUserInterrupt(void)
#' ```
#
#' @section R API:
#'
#' All evaluation at the top level of R checks for interrupts.
#'
#' Related functions that affect `R_CheckUserInterrupt()`:
#' * [base::suspendInterrupts()] - suspends interrupts during evaluation
#' * [base::allowInterrupts()] - allows interrupts during evaluation
#'
#' @source Declaration: [src/include/R_ext/Utils.h](https://github.com/wch/r-source/blob/trunk/src/include/R_ext/Utils.h)
#' @source Implementation: [src/main/errors.c](https://github.com/wch/r-source/blob/trunk/src/main/errors.c)
#'
#' @export
R_CheckUserInterrupt <- function(void) {
  void = void
  
  return(void)
}
HenrikBengtsson/RNativeAPI documentation built on April 10, 2023, 6:22 p.m.