From bhh at xs4all.nl  Wed Oct 26 11:22:37 2016
From: bhh at xs4all.nl (Berend Hasselman)
Date: Wed, 26 Oct 2016 11:22:37 +0200
Subject: [Rd] BUG?: On Linux setTimeLimit() fails to propagate timeout
	error when it occurs (works on Windows)
In-Reply-To: <CAFDcVCStodbQMS4TffimW69qvVutCX8FheDNxf1o_Ejpmu9NQg@mail.gmail.com>
References: <CAFDcVCStodbQMS4TffimW69qvVutCX8FheDNxf1o_Ejpmu9NQg@mail.gmail.com>
Message-ID: <8995051E-628D-4536-A64C-517A9188F416@xs4all.nl>


> 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



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