glossary_path {glossary} | R Documentation |
Set or get the default glossary path
Description
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)
# set path (assumes file exists)
glossary_path(path)
[Package glossary version 1.0.0 Index]