Skip to content
Prev 44039 / 63424 Next

if(--as-cran)?

On 12-09-04 8:19 PM, Kasper Daniel Hansen wrote:
>
I honestly don't see the need for a standardized variable.  I've told 
you how to detect that you are running --as-cran; if that isn't 
sufficient information, then you, the package author, need to set up 
something more elaborate, and assume that if it's not set up, then 
someone else (maybe CRAN) is running the test.

I asked the CRAN powers-that-be about the possibility of querying the 
amount of time remaining before a timeout; since the different platforms 
all use different mechanisms to enforce a timeout, that's not really 
practical.  So the best you could hope for is to know that a timeout is 
in effect.  Before I wrote any code, I'd need to hear why --as-cran 
detection isn't sufficient.

Duncan Murdoch