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

WIP: display package dependencies #2520

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

WIP: display package dependencies #2520

wants to merge 4 commits into from

Conversation

hadley
Copy link
Member

@hadley hadley commented May 8, 2024

To fix #1333

Copy link

github-actions bot commented May 8, 2024

@olivroy

This comment was marked as outdated.

@hadley
Copy link
Member Author

hadley commented Jun 19, 2024

Yeah, probably. I just need to get into the right headspace to push through the display challenges and finish this off.

@hadley
Copy link
Member Author

hadley commented Jun 19, 2024

Oh except I'll need a translation for the link title and I have just asked all the translators to update 😞. So probably this will need to come later.

Comment on lines +33 to +37
x %in% c(
"base", "compiler", "datasets", "graphics", "grDevices", "grid",
"methods", "parallel", "splines", "stats", "stats4", "tcltk",
"tools", "utils"
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better use x %in% rownames(installed.packages(priority="base"))?

cf. https://stackoverflow.com/questions/21567057/programmatically-get-list-of-base-packages

if (is_base_package(package)) {
href <- NA
} else {
href <- paste0("https://cran.r-project.org/web/packages/", package)
Copy link
Collaborator

@salim-b salim-b Jun 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think CRAN would rather want us to create canonical links like

href <- paste0(" https://CRAN.R-project.org/package=", package)

(hostname is case-insensitive, of course)


if (is.na(href)) {
if (is_base_package(package)) {
href <- NA
Copy link
Collaborator

@salim-b salim-b Jun 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For base R packages, we could link to one of the unofficial documentation renderings, e.g.

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

Successfully merging this pull request may close these issues.

Add a dependencies page one click away from the homepage?
3 participants