Skip to contents

Uses the glossary to make tooltip definitions

Usage

glossarize(x, as_text = FALSE, .glossary = glossary)

Arguments

x

(chr) to add tooltips too

as_text

(lgl) if x is for a tooltip or otherwise needs to be plain text - a definition will be inserted as follows: ACRONYM (DEFINITION) since nested tooltips do not render

.glossary

tbl of glossary items with the following structure

  • Acronym Column with acronym abbreviations

  • Definition Column with acronym definitions

Value

(list) with shiny.tags that will render the acronyms with definitions

Examples

glossarize("A DMDU Example")
#> A <span>
#>   <a class="tippy" id="tippy-tb98hc7qngr2pydeoulv">DMDU</a>
#>   <script>tippyr.tip({"selector":"#tippy-tb98hc7qngr2pydeoulv","options":{"content":"Decision Making Under Deep Uncertainty","allowHTML":true,"interactive":false}});</script>
#> </span> Example