Skip to content
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

Behavior of BiocStyle::Biocpkg() #112

Open
federicomarini opened this issue Nov 1, 2024 · 4 comments
Open

Behavior of BiocStyle::Biocpkg() #112

federicomarini opened this issue Nov 1, 2024 · 4 comments

Comments

@federicomarini
Copy link

Referring to this issue: iSEE/iSEEde#43

My thought was that this is indeed resulting from using BiocStyle::Biocpkg("iSEEde") in the Rmd README of the package.

Shouldn't the ideal behavior of this function be to use a non-versioned link? Instead of returning https://bioconductor.org/packages/3.16/iSEEde, wouldn't https://bioconductor.org/packages/iSEEde be the better option? Or alternatively, have the version info included as result of a parameter, e.g. include_version?

Why - because https://bioconductor.org/packages/3.16/iSEEde ends up "becoming broken" (but the "current one", https://bioconductor.org/packages/3.19/iSEEde would still work (probably as long as the current release is matched to that value?))

If I am missing something relevant about this being the default, let me know.
Otherwise: happy to come in with a PR 😉

@kevinrue
Copy link
Contributor

kevinrue commented Nov 3, 2024

Maybe instead of include_version= I'd suggest an argument short_link=TRUE|FALSE. Not sure about the best default value.

@aoles
Copy link
Collaborator

aoles commented Nov 3, 2024

Thanks @federicomarini for pointing this out! ❤️

I believe in the context of vignettes and reproducibility the inclusion of package version in the links makes sense. As for general links to the package landing page such as ones in e.g. README documents etc. it might indeed be reasonable to have an option of including an unversioned link.

My suggestion would be to introduce an argument versioned = TRUE to BiocStyle::Biocpkg. In your example you could then write

BiocStyle::Biocpkg("iSEEde", versioned = FALSE)

Feel free to submit a PR, I'm more than happy to review it 🚀

@federicomarini
Copy link
Author

On it!

@federicomarini
Copy link
Author

I just created a small PR to implement this functionality - feel free to edit if you fancy another coding style (I tried to go the compact way but could not shorten it up further)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants