Hyperlink in document R

I am writing an R document (Rd) for functions. In the markdown method, we can create a hyperlink [google](https://www.google.com) . How can I reproduce this in an R document?

It seems that \link{...} can only create a link that is different from what I'm looking for.

+7
r rd
source share
1 answer

The link{} macro must link to other pages in the documentation.

You can use the \href{}{} macro to include a link to another web page where the text is not a link.

Example:

 \href{http://stackoverflow.com/}{Stack Overflow} 

In addition to the official R documentation for package development, you can also read the Hadley's "R Packages" Object Documentation .

+8
source share

All Articles