glossary_path: Set or get the default glossary path

View source: R/glossary_options.R

glossary_pathR 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)

glossary documentation built on May 31, 2023, 9:04 p.m.