Set or get the default glossary path
Arguments
- path
the path to the glossary file, or NULL for local definitions
- create
create a new glossary file if it doesn't exist
Examples
path <- glossary_path() # get current path
# create (if doesn't exist) and set path
newpath <- tempfile("glossary", fileext = ".yml")
glossary_path(newpath, create = TRUE)
#> /tmp/Rtmp8PhESv/glossary18262e030010.yml did not exist; it has been created
# set path (assumes file exists)
glossary_path(path)