Re: Use immutable CRAN URLs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxx>
> 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
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux