This function interrupts an evaluation after a certain number of seconds.
Note the limitations documented in setTimeLimit.
Arguments
- expression
[
expression]
An R expression to be evaluated.- seconds
[
numeric(1)]
The number of seconds.- on_time_out
[
character(1)]
Defines what action to take if the evaluation time exceeded, either:"error"to throw an error exception"warning"to returnNULLalong with a warning"silent"(the default) to just returnNULL
Value
The value of expression or, if the evaluation time exceeded, whatever
is specified for on_time_out.
See also
Other function helpers:
do.call_timed(),
function_arguments(),
function_body(),
function_defaults(),
quiet(),
try_silent(),
variable_name()
