Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hyperlink in R document

Tags:

r

rd

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

It seems that \link{...} can only create a link, which is different from what I am looking for.

like image 344
semibruin Avatar asked Jun 03 '15 04:06

semibruin


1 Answers

The link{} macro is to link to other documentation pages.

You can use the \href{}{} macro to include a link to another webpage, where the text displayed is not the link.

Example:

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

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

like image 81
A5C1D2H2I1M1N2O1R2T1 Avatar answered Oct 14 '22 16:10

A5C1D2H2I1M1N2O1R2T1