Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

singleton_tools

Singleton manipulation functions


Description

Functions for manipulating singleton objects in tag hierarchies. Intended for framework authors.

Usage

surroundSingletons(ui)

takeSingletons(ui, singletons = character(0), desingleton = TRUE)

Arguments

ui

Tag object or lists of tag objects. See builder topic.

singletons

Character vector of singleton signatures that have already been encountered (i.e. returned from previous calls to takeSingletons).

desingleton

Logical value indicating whether singletons that are encountered should have the singleton attribute removed.

Value

surroundSingletons preprocesses a tag object by changing any singleton X into <!–SHINY.SINGLETON[sig]–>X'<!–/SHINY.SINGLETON[sig]–> where sig is the sha1 of X, and X' is X minus the singleton attribute.

takeSingletons returns a list with the elements ui (the processed tag objects with any duplicate singleton objects removed) and singletons (the list of known singleton signatures).


htmltools

Tools for HTML

v0.5.1.1
GPL (>= 2)
Authors
Joe Cheng [aut], Carson Sievert [aut, cre] (<https://orcid.org/0000-0002-4958-2844>), Winston Chang [aut], Yihui Xie [aut], Jeff Allen [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.