[Rd] BUG?: On Linux setTimeLimit() fails to propagate timeout error when it occurs (works on Windows)

Berend Hasselman bhh at xs4all.nl
Wed Oct 26 11:22:37 CEST 2016


> On 26 Oct 2016, at 04:44, Henrik Bengtsson <henrik.bengtsson at gmail.com> wrote:
> .......
> This looks like a bug to me.  Can anyone on macOS confirm whether this
> is also a problem there or not?
> 


Tried it on macOS El Capitan and got this (running in R.app with R version 3.3.2 RC (2016-10-23 r71574):

> setTimeLimit(elapsed=1)
> system.time({ Sys.sleep(10); message("done") })
Error in Sys.sleep(10) : reached elapsed time limit
Timing stopped at: 0.113 0.042 10.038 

Berend



More information about the R-devel mailing list