check.signal: check.signal

Description Usage Arguments Details Value Author(s)

View source: R/test.R

Description

Check if an expression results in a signal being delivered

Usage

1
check.signal(expr, signo, testname, no.signal = FALSE)

Arguments

expr

The expression to evaluate

signo

The signal number (consider using constants like SIGUSR1 from the tools package).

testname

Name for this test. Default is to build from signo argument.

no.signal

Logical, to invert the sense of the test. Default, FALSE, means to test that the signal was delivered. TRUE means to test that the signal was not delivered.

Details

Check if an expression results in a signal being delivered. The signal will be caught: you can safely deliver a signal such as SIGUSR1 that would normally cause the process to die.

Value

The value of the evaluated expression, invisibly, so you can do more testing if desired.

Author(s)

Brad Friedman - Regular


AnalysisPageServer documentation built on April 28, 2020, 6:32 p.m.