Skip to content

Conversation

@hadley
Copy link
Member

@hadley hadley commented May 8, 2024

To fix #1333

@github-actions
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?

4 participants