R Markdown documents can be generated as PDF, HTML or Word documents. Often times you may want to include hyperlinks in your document to go to a specific webpage, to open an email program, or to even just jump to another location in the document. Lets look at how to add these types of hyperlinks to each document output type. In this post, I’ll be covering HTML Hyperlinks and I’ll cover Word and PDF in subsequent posts.
By far, adding hyperlinks when generating an HTML document is easy in R Markdown. An inline hyperlink to a website in your document is enclosed in less-than and greater-than tags, like this: <http://edpflager.com>.