From olafm at statistik.tu-dortmund.de  Mon Jan 24 09:15:54 2011
From: olafm at statistik.tu-dortmund.de (Olaf Mersmann)
Date: Mon, 24 Jan 2011 09:15:54 +0100
Subject: [Rd] Possible bug in R parser
Message-ID: <AANLkTimQVCHSFXHRaLtJXY_NpTxRHsZcdyNQ9h+UT4jA@mail.gmail.com>

Dear R developers,

A recent typo led me to discover, that R is happy to accept

  > 20x2
  [1] 20

as input. This appears to be related to the parsing of hexadecimal
constants, since there must be a zero before the 'x' (i.e. 2x2 or
02x02 gives the expected error). All this is under R 2.12.1 on both OS
X and Linux. Is this expected behavior?

Cheers,
Olaf Mersmann



[Rd] Possible bug in R parser
Olaf Mersmann