Skip to content

Conversation

@salim-b
Copy link
Contributor

@salim-b salim-b commented Feb 15, 2025

plus minor tweaks

plus minor tweaks
#' artefacts
#' * Prompts user to run the checks with `revdepcheck::revdep_check()`
#' artefacts.
#' * Prompts the user to run the checks with [revdepcheck::revdep_check()].
Copy link
Member

Choose a reason for hiding this comment

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

I can't link to a topic in a package that's not on CRAN, which revdepcheck is not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why can't you link to it? Is there a CRAN rule forbidding this?

Copy link
Member

Choose a reason for hiding this comment

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

Technically you should have a formal dependency on a package to link to its help topics:

https://cran.r-project.org/doc/manuals/r-devel/R-exts.html#Cross_002dreferences-1

Packages referred to by these ‘other forms’ should be declared in the DESCRIPTION file, in the ‘Depends’, ‘Imports’, ‘Suggests’ or ‘Enhances’ fields.

In the past, you can sort of get away with a link to something you don't depend on, sometimes. But I would not go so far for a package that is not even on CRAN.

Also CRAN is now making static HTML reference manuals, which has triggered a big wave of requests to re-release packages cleaning up various documentation loose ends. So if anything, this is all going to get even stricter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, didn't know that. Thanks for the references and explanations! I guess your reluctance is wise.

In general, I think linking to help topics would always lead to better UX than not linking, regardless of whether a package is installed or not, is on CRAN or not, etc. But of course CRAN comes up with yet another silly obstacle to sensible dev workflows1 in 2025... 🥳

Footnotes

  1. After all, the R project is one of the last non-SVN related open-source projects that still hasn't switched to Git.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addendum: We could link to the pkgdown documentation instead, WDYT?

@jennybc jennybc closed this Jul 29, 2025
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.

2 participants