简体   繁体   中英

How to `\link{}` to a specific section of an Rd file with Roxygen2?

Say I want to link to the "Details" section of my documentation for function foo , what do I do? \link{foo:Details} doesn't appear to work, so what is the right command?

You can use \linkSections{} to link to sections of an Rd file .

\linkSections{foo}

will link to the section of the foo documentation that you are currently viewing.

If you want to link to a specific section, you can use

\linkSections{foo,Details}

to link to the Details section of the foo documentation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM