R/format-rd.R
rd_package.Rd
Surround selected text with Rd markup for package names.
rd_package()
User-selected text: package
package
Result of function: \pkg{package}
\pkg{package}
Example output with no text selection: \pkg{}
\pkg{}
The Writing R Extensions manual.