-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Inconsistent r-speedglm version numbering: 0.3_5 instead 0.3.5 #152
Comments
Thanks for reporting, it should get fixed when the package gets rebuilt in about an hour |
@pekkarr plz note that according to arch wiki, dash in pkgver should be replaced with underscore instead of dot. see |
On the other hand, the R package guidelines page has the following advice:
Also almost all R packages in this repo and in AUR use dot as the replacement. I don't see any benefits to using underscores instead, so in my opinion we should continue using dots instead of underscores. In addition to that, we are not only replacing hyphens but colons too, so replacing them both with a dot makes sense, because then we don't need different conversions for each of them and the same |
I suggest using underscore as we can get a one-to-one mapping between the R pkg version and pkgver in PKGBUILD.
Maybe they are all wrong? Most of them are maintained by us. BTW, I'd like to add some examples from official repo,
|
Apparently colons aren't allowed in R package versions, as the Writing R Extensions guide states that
I also checked all packages in CRAN and Bioconductor, and none of them have a colon in version. So there's no need to have colon replacing code after all.
What is the use case for this? Why would this be needed?
I don't think using either is wrong. The R package guidelines allow both, but for consistency we should choose one and use that in all R packages.
Even for the packages not maintained by us replacing with dot is far more common. I don't remember seeing any R package on AUR that uses underscore (except
Yeah, it seems that underscores are commonly used for replacing hyphens. However, dots are used too for that purpose. The most notable example of this is the official However, if we do decide to use underscores instead, that should be changed in all maintained R packages. Also the colon replacing code should be removed, probably at the same time if we switch to underscores. |
Ok. Since the template in R packages guideline use dot for both hyphens and colon, let's keep this convention.
I have to mention that it is proposed by me. But the template does. |
Let's keep using dots then. However, the R package guidelines aren't that accurate. They claim that upstream R package versions can contain colons, which is false. They also say to put packages in the |
Should this issue be closed? |
This is not an error directly associated with installing the package from the command line. However, the PKGBUILD configuration file does not follow the usual coding of
_pkgver
to request download on CRAN andpkgver
to publish to repository so the versioning follows the archlinux guideline: https://wiki.archlinux.org/title/Arch_package_guidelines#Package_versioningI see that in a previous commit those variables were removed to use only
pkgver
, although I'm not sure why: 25888a1All other packages in this repository follow this proper versioning practice, e.g.: https://github.com/BioArchLinux/Packages/blob/master/BioArchLinux/r-lavaan/PKGBUILD
Desktop:
Additional context
Just to complement. Currently,
speedglm
versioning causes a conflict when trying to install under thebspm
package: cran4linux/bspm#71The text was updated successfully, but these errors were encountered: