Add definitions to acronyms
glossarize.Rd
Uses the glossary to make tooltip definitions
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 structureAcronym
Column with acronym abbreviationsDefinition
Column with acronym 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