From lukas.stadler at oracle.com  Wed Oct 12 10:37:18 2016
From: lukas.stadler at oracle.com (Lukas Stadler)
Date: Wed, 12 Oct 2016 10:37:18 +0200
Subject: [Rd] integerOneIndex/get1index/... in vector access error messages
Message-ID: <86CA0E2F-87F5-47AB-8633-2F06649D2DC8@oracle.com>

Hi!

We noticed that these error messages were changed to include the name of the function that causes them:
> { x<-c(1,2); x[[c("a", "b")]] }
old: ?Error in x[[c("a", "b")]] : attempt to select more than one element?
new: ?Error in x[[c("a", "b")]] : attempt to select more than one element in vectorIndex?

This is the relevant change:
https://github.com/wch/r-source/commit/5d6c765bf8b97bf872f760d06622850f43696d8b

I don?t think that a user of R is supposed to know the difference between, e.g., integerOneIndex and get1index, so this will confuse, rather than help, a user while diagnosing problems.
To be honest, this looks to me like leftover debug code...

In FastR, we try to adhere as closely as possible to GNUR in which errors are returned when.
Do you think that providing these ?in Xyz? suffixes is important?

- Lukas


[Rd] integerOneIndex/get1index/... in vector access error messages
Lukas Stadler