Custom HTML links in Shiny

We will now make a little toy application that shows the life expectancy over time for three different countries, and that gives a link to the Wikipedia page for each. It's not really designed to look good or be useful, but rather to illustrate several things that are possible when you wish to add small amounts of HTML to a native Shiny application, rather than building from scratch or working with HTML templates (more on which later).

We're going to build an application that allows you to select from a couple of different countries and view the life expectancy over time in that country. A custom HTML button shows the Wikipedia page for the selected country.

Get Web Application Development with R Using Shiny - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.