Skip to content
Prev 70163 / 398502 Next

R annoyances

Taylor, Z Todd wrote:
Using an underscore will break old versions of R, and some versions of 
S-PLUS.

Using a dot will break S3 method dispatch.

Using mixed case will lead to complaints from people who don't mind 
breaking one of those things.

What's a package author to do??

I suggest that we redefine "+" to be a legal character in the name of an 
identifier.  Sure, if you used to have "a+b" you'll have to rewrite it 
as "+(a,b)", but think of the benefits! 
You+can+write+out+long+sentences+and+use+them+as+variable+names!

Duncan Murdoch