timeout: timeout

Description Usage Arguments Author(s)

View source: R/timeout.R

Description

This function limits elapsed time spent on single model development. It uses low-level functions of parallel packege and sets the fork process with time limit. If the result is not returned within set time, it kills fork. Function shouldn't be called from R console. The function is not used under Windows OS. Only Unix-like systems have fork functionality.

Usage

1
timeout(..., seconds)

Arguments

...

Expression to be time limited

seconds

Number of seconds

Author(s)

Original code by Jeroen Ooms <jeroen.ooms at stat.ucla.edu> of OpenCPU package. Modifications by Jakub Szlek and Aleksander Mendyk.


fscaret documentation built on May 2, 2019, 10:15 a.m.