Le mercredi 31 octobre 2018 à 21:31 +0100, Iñaki Ucar a écrit :
On Wed, 31 Oct 2018 at 21:22, Iñaki Ucar
<iucar(a)fedoraproject.org>
wrote:
> while the R package name is TH.data, not TH-data. I see that the
> SPEC
> says "# Cannot use . in name", but this is clearly not true (maybe
> it
> was true long ago?).
Well... the guidelines for Python state: 'Note that when a module that
has a dot in its name, the usual rule about changing "." to "-"
applies.' But the guidelines for R say nothing about that, and as a
result, most packages with a dot don't change it. Maybe R-TH-data is
the only one that is compliant after all? :)
And the guidelines also say to lowercase by default…
So my packagename computing macros just do this nowadays (aside from
adding the correct prefix or suffix)
r = string.gsub(r, "[%p%s]+", "-")
r = string.gsub(r, "^-", "")
r = string.gsub(r, "-$", "")
r = string.lower(r)
--
Nicolas Mailhot