From hadley at rice.edu  Wed Jul  6 00:29:39 2011
From: hadley at rice.edu (Hadley Wickham)
Date: Tue, 5 Jul 2011 18:29:39 -0400
Subject: [Rd] Syntactically valid names
In-Reply-To: <2698F67A-DDF9-4EAF-B7A8-A4FAAE9CCC6B@gmail.com>
References: <BANLkTimg=TM0hYA1=Obknb+486Hv8T7Fdw@mail.gmail.com>
	<2698F67A-DDF9-4EAF-B7A8-A4FAAE9CCC6B@gmail.com>
Message-ID: <CABdHhvHmRP6XOkTq+4Z1NjvW1SRwqt1AUwga_ovbMOfi3zi5oA@mail.gmail.com>

> I wouldn't expect so. The basic structure might be handled using a regexp of sorts, but even that is tricky because of the "dot not followed by number" rule, and then there's the stop list of reserved words, which would make your code clumsy whatever you do.
>
> How on Earth would you expect anything to be significantly more elegant than your
>
> function(x) x == make.names(x)
>
> anyway??! (OK, if there was a wrapper for the C level isValidName() function...)

Good point.  Thanks!

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



[Rd] Syntactically valid names
Hadley Wickham