From luke-tierney at uiowa.edu  Sun Nov 27 23:30:34 2016
From: luke-tierney at uiowa.edu (luke-tierney at uiowa.edu)
Date: Sun, 27 Nov 2016 16:30:34 -0600
Subject: [Rd] Changes in error reporting in r-devel
In-Reply-To: <41a24c90-9837-3ff8-ab78-6745b1d91535@gmail.com>
References: <820896809.998306.1480264479807.ref@mail.yahoo.com>
	<820896809.998306.1480264479807@mail.yahoo.com>
	<41a24c90-9837-3ff8-ab78-6745b1d91535@gmail.com>
Message-ID: <alpine.DEB.2.20.1611271625160.2864@luke-Latitude>

Its a compiled/interpreted difference. At the moment a small function
like this is only compiled on the second call. That is in flux as we
tune the JIT. But we should try to get rid of the difference. I
actually prefer seeing the more specific call b() since you can get
the larger context from traceback(), and showing b() is more
consistent with argument errors in builin calls.

Best,

luke


On Sun, 27 Nov 2016, Duncan Murdoch wrote:

> On 27/11/2016 11:34 AM, brodie gaslam via R-devel wrote:
>> Minor issue, but the following changed as of R3.3.2 from:
>>
>>     > a <- function() b()
>>     > a()
>>     Error in a() : could not find function "b"
>> 
>> To (at least in R Under development (unstable) (2016-11-20 r71670)):
>>
>>     Error in b() : could not find function "b"
>> 
>> Notice the "Error in **b**() :" part.  The original error message seems 
>> more correct to me, although I can see how you can argue for either one.
>
> I'm not seeing that in R-devel r71694.  Could you update and try again?
>
> Duncan Murdoch
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Luke Tierney
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa                  Phone:             319-335-3386
Department of Statistics and        Fax:               319-335-3017
    Actuarial Science
241 Schaeffer Hall                  email:   luke-tierney at uiowa.edu
Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu



[Rd] Changes in error reporting in r-devel
luke-tierney at uiowa.edu