Skip to content
Prev 44034 / 63424 Next

if(--as-cran)?

On 04/09/2012 5:21 PM, John Fox wrote:
That would work for examples, but not tests.  Many packages have scripts 
that are in the tests directory, not just test code in the .Rd files.  
What I think you should use is my suggested 
HowMuchTimeLeftBeforeTimeout() function, but if that's not writeable, 
then simply having a TIMELIMIT environment variable or similar, so your 
code could see if the there's a timeout pending.

Duncan Murdoch