From p.dalgaard at biostat.ku.dk  Mon Apr 18 11:18:03 2005
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Mon Apr 18 11:20:16 2005
Subject: [Rd] citation() chops "Roeland " (PR#7797)
In-Reply-To: <20050418083510.25A7AA1D8@slim.kubism.ku.dk>
References: <20050418083510.25A7AA1D8@slim.kubism.ku.dk>
Message-ID: <x2fyxov3xw.fsf@biostat.ku.dk>

jari.oksanen@oulu.fi writes:

> Full_Name: Jari Oksanen
> Version: 2.0.1, 2.1.0 beta (2005-04-17)
> OS: Linux
> Submission from: (NULL) (130.231.102.145)
> 
> 
> If name ends with "and", such as "Roeland Lastname", citation() will chop "and"
> as a separate word giving "Roel and Lastname". This is the case in the upcoming
> release of vegan (1.6-8) just submitted to CRAN. Basically, this seems to happen
> in utils:::as.personList.default
> 
> > unlist(as.personList("Roeland Lastname"))
>  name.first name.middle   name.last  name.first name.middle   name.last
>          ""          ""      "Roel"          ""          ""  "Lastname"
> 
> and the culprit line seems to be:
> 
> x <- unlist(strsplit(x, "[[:space:]]?(,|and)[[:space:]]+"))
> 
> Fortunately, persons like Anders Andtfolk and Mandalay Grandjean are not
> chopped, because they don't have space after "and".

I'm sure it'll annoy Anders|George Sand, Bertrand Russell, Inge
Helland, et al., but it hardly counts as release-critical, nor trivial
enough to slip in during code freeze, especially as regular
expressions are involved (does one *ever* get them right on the first
try?)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907


[Rd] citation() chops "Roeland " (PR#7797)
Peter Dalgaard