Re: [R] Dots in function names

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Sat 01 Oct 2005 - 04:06:38 EST

On Fri, 30 Sep 2005, Mike Prager wrote:

> Recent R function names seem to be using CaseOfTheLetters to mark words
> rather than dots as was done previously. Is the use of dots in function
> names deprecated, or is that simply a style choice? Will function names
> with dots cause problems in future revisions?
>

There are, and always have been, problems with using dots because of the way S3 methods work. These are getting worse as more functions become generic but are getting better as more methods are in namespaces and thus registered.

I don't expect dots to go away any time soon, so the choice between name.with.dots(), name_with_underscores(), runonname(), and nameCamelCased() is really a stylistic one.

         -thomas



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Oct 01 04:11:42 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:06:24 EST