glossary_notes: Return formatted notes from a tex glossary file or glossary...

View source: R/glossary.R

glossary_notesR Documentation

Return formatted notes from a tex glossary file or glossary object

Description

Return formatted notes from a tex glossary file or glossary object

Usage

glossary_notes(x, ...)

## S3 method for class 'character'
glossary_notes(x, ..., format = guess_glo_fmt(x))

## S3 method for class 'list'
glossary_notes(x, ...)

## S3 method for class 'glossary'
glossary_notes(x, ..., sep = ": ", collapse = "; ")

Arguments

x

path to a tex glossary file, a glossary object, or a list that can be coerced to a glossary object with as_glossary().

...

unquoted glossary labels to be included in the notes text.

format

passed to read_glossary().

sep

character to separate name and value.

collapse

a character used to collapse definitions into a single string.

See Also

st_notes_glo(), read_glossary()

Examples

file <- system.file("glo", "glossary.tex", package = "pmtables")

glossary_notes(file, WT, CRCL)

g <- as_glossary(ss = "steady state", ALB = "albumin", WT = "weight")

glossary_notes(g, ALB, ss)

what <- c("WT", "NCA", "NPDE")

g <- read_glossary(file)

glossary_notes(g, tidyselect::all_of(what))

l <- list(ss = "steady state", ALB = "albumin", WT = "weight")

glossary_notes(l, ALB, ss)


metrumresearchgroup/pmtables documentation built on Oct. 27, 2024, 5:16 p.m.