Skip to content
Prev 26164 / 63424 Next

(PR#9915) *.Rd file: space after topic in "\alias{topic }"

Spaces are indeed significant in \alias, and the treatment of leading and 
trailing spaces seems undocumented.  (Four CRAN package authors have made 
assumptions here.)

As far as I can see this comes up in 3 places:

1) Writing AnIndex strips leading but not trailing spaces.
2) get_multi used to create @aliases strips both.
3) Looking up aliases in \link happens at both compile and (for [C]HTML) 
run times, and it seems never strips spaces.

I think it would have been better to leave spaces alone, but I propose to 
consistently strip leading and trailing spaces in aliases and not links, 
and to document that.
On Mon, 17 Sep 2007, bill at insightful.com wrote: