From tlumley at u.washington.edu  Mon Oct 13 20:15:50 2003
From: tlumley at u.washington.edu (tlumley@u.washington.edu)
Date: Mon Oct 13 20:14:56 2003
Subject: [Rd] infinite loop in abbreviate() (PR#4564)
Message-ID: <200310131815.h9DIFo0P021101@pubhealth.ku.dk>



abbreviate() will go into an infinite loop if two elements of the argument
differ only by leading space

eg
  abbreviate(c("A"," A"), 4)

This is in R 1.8.0 (both OS X and Linux).

The problem appears to be that duplicates are removed before leading and
trailing spaces.

	-thomas


[Rd] infinite loop in abbreviate() (PR#4564)
tlumley@u.washington.edu