O'Reilly logo

Learning Shiny by Hernán G. Resnizky

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The use of tags in UI.R

tags is an object of type list that is automatically generated inside Shiny applications, which enables the insertion of HTML tags within a user interface generated in UI.R. This basically contains a list of functions that will transform the string argument to the content of the tag used, for example, see the following:

tags$pre("Text inside a pre tag")

This generates the following tag:

<pre>Text inside a pre tag</pre>

Note

The complete list of tags can be found at http://shiny.rstudio.com/articles/tag-glossary.html.

Attributes can be passed to any of the functions in tags by passing them as arguments, for example:

tags$pre(align="right","Text inside a pre tag")

This will be turned into the following HTML:

<pre align="right">Text ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required