I want to cite another package (the whole package, not just a function from it) in the documentation of some functions I'm developing. I am using Roxygen2 comments to document my package functions.
I cannot find a way to create a link to a whole third-party package using Roxygen2. To link to a package function, one would write [pkg::fun()]
but I don't know how to create a link to the package itself.
Some packages expose a general man page, and it's possible to link to it via e.g. [pkg::pkg]
.
But many packages don't have this and there's just a general package vignette with the list of functions and a link to the description:
Such page can be reached by clicking on a package name in the packages tab in RStudio.
How can I link to it from a function documentation made in Roxygen2 markdown.?
[pkg::pkg]
might work. If not, just use a full markdown link, e.g.[roxygen2](https://roxygen2.r-lib.org/)
– Gianninirentrez
. Other packages don't have this but still RStudio can show the general vignette if you click on the package name, so it should be linkable I guess. See for examplecrrri
. – Championship