From mick.jordan at oracle.com  Wed Jan  4 21:49:41 2017
From: mick.jordan at oracle.com (Mick Jordan)
Date: Wed, 4 Jan 2017 12:49:41 -0800
Subject: [Rd] seq.int/seq.default
In-Reply-To: <688b761b-650b-2df6-da61-56f144939f9b@oracle.com>
References: <03f5806e-6656-233a-c7f0-ebe25f3160c8@oracle.com>
	<22636.49109.884523.191528@stat.math.ethz.ch>
	<688b761b-650b-2df6-da61-56f144939f9b@oracle.com>
Message-ID: <88fcb2a7-d2a0-10af-cc03-c04ac20bec2f@oracle.com>

On 1/4/17 8:15 AM, Mick Jordan wrote:

Here is another difference that I am guessing is unintended.

 > y <- seq.int(1L, 3L, length.out=2)
 > typeof(y)
[1] "double"
 > x <- seq.default(1L, 3L, length.out=2)
 > typeof(x)
[1] "integer"

The if (by == R_MissingArg) branch at line 842 doesn't contain a check 
for "all INTSXP" unlike the if (to == R_MissingArg) branch.

Mick



[Rd] seq.int/seq.default
Mick Jordan