Skip to contents

Set or get the default glossary path

Usage

glossary_path(path, create = FALSE)

Arguments

path

the path to the glossary file, or NULL for local definitions

create

create a new glossary file if it doesn't exist

Value

path string if path is NULL

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/RtmpylTo6l/glossary19b9144c69f7.yml did not exist; it has been created

# set path (assumes file exists)
glossary_path(path)