Manipulate HTML tags from R with {htmltools}

David Granjon · 2022

The ultimate goal of is to manipulate, combine and rearrange tags in order to create flexible and rich HTML structures from R. Would you believe that the below example heavily relies on. Inside the function call, all named elements become attributes, whereas unnamed elements become children. In some cases, tags may have empty attributes like. In that case, the corresponding R code is input. Let&s;s consider an example consisting of a tabset16 panel with three tabs. Those menu items are one of the most challenging elements to handle when building a custom Shiny template and the new tagQuery literally make it a breeze to handle. As shown in the preliminary example, the main interest of querying tags is to ultimately modify them. tagQuery exposes methods to modify attributes, children of the query selection.

Read the paper · More papers on PaperTik