Skip to content

WIP: display package dependencies#2520

Draft
hadley wants to merge 4 commits into
mainfrom
package-deps
Draft

WIP: display package dependencies#2520
hadley wants to merge 4 commits into
mainfrom
package-deps

Conversation

@hadley

@hadley hadley commented May 8, 2024

Copy link
Copy Markdown
Member

To fix #1333

@github-actions

github-actions Bot commented May 8, 2024

Copy link
Copy Markdown

@olivroy

This comment was marked as outdated.

@hadley

hadley commented Jun 19, 2024

Copy link
Copy Markdown
Member Author

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

@hadley

hadley commented Jun 19, 2024

Copy link
Copy Markdown
Member Author

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 thread R/build-home-deps.R
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
Copy Markdown
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

Comment thread R/build-home-deps.R
if (is_base_package(package)) {
href <- NA
} else {
href <- paste0("https://cran.r-project.org/web/packages/", package)

@salim-b salim-b Jun 23, 2024

Copy link
Copy Markdown
Collaborator

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)

Comment thread R/build-home-deps.R

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

@salim-b salim-b Jun 23, 2024

Copy link
Copy Markdown
Collaborator

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