Consider a base package XYZ
, written by someone else, which has a function ABC
, I want to extend the functionality of ABC
in my new (NOT XYZ) package via the following method.
ABC <- function(...){
##INSERT EXTRA WORK.
##CALL THE BASE METHOD
XYZ::ABC(...)
}
Now I want to document my new function ABC
(via Roxygen), creating a link to the parent function for reference purposes.
\code{\link{XYZ::ABC}}
does not work, no function cannot be found.
\link{ABC}
creates a link to a list of possible candiate Rd files,
How do I create the hyperlink DIRECTLY to the BASE function.
@importsFrom XYZ ABC
, no? – Pileous\code{\link[XYZ]{ABC}}
– Nomarch