Movatterモバイル変換


[0]ホーム

URL:


Auto-linking

Within a package

pkgdown will automatically link to documentation and articleswherever it’s possible to do unambiguously. This includes:

Across packages

Linking to documentation in another package is straightforward. Justadapt the call in the usual way:

If pkgdown can find a pkgdown site for the remote package, it willlink to it; otherwise, it will link tohttps://rdrr.io/ for documentation and CRAN forvignettes. In order for a pkgdown site to be findable, it needs to belisted in two places:

Now, when you build a pkgdown site for a package that links to thedplyr documentation (e.g.,dplyr::mutate()), pkgdown looksfirst in dplyr’sDESCRIPTION to find its website, then itlooks forpkgdown.yml, and uses the metadata to generatethe correct links.

To allow your package to be linked by other locally installedpackages, even if your website is not reachable at build time, thefollowing option needs to be set in_pkgdown.yml:

deploy:install_metadata:true

This allows locally installed packages to access package indexmetadata from the locally installed copy, which may be useful if yourwebsite require auth, or you build behind a firewall.


[8]ページ先頭

©2009-2025 Movatter.jp