glossary_add | R Documentation |
Write a term and definition to an existing glossary file.
glossary_add(term, def, path = glossary_path(), replace = FALSE)
term |
The term to define |
def |
The definition to add |
path |
the path to the glossary file; set default with |
replace |
Whether to replace an existing definition |
NULL; Called for side effects
# make a new glossary file
path <- tempfile("glossary", fileext = ".yml")
glossary_path(path, create = TRUE)
# add an entry for "joins"
glossary_add("joins", "Ways to combine data from two tables")
# now you can access the definition
glossary("joins")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.